SimpleGraphQL-For-Unity icon indicating copy to clipboard operation
SimpleGraphQL-For-Unity copied to clipboard

Change from using GUID to copying link.xml directly into project?

Open NavidK0 opened this issue 4 years ago • 1 comments

From #15, which was merged, but my last post still stands. It could be a solution that doesn't require intervention if the GUID changes within the package.

I see, hmm. Using the GUID feels quite fragile, I must admit. I wonder if there's a better way just using a relative path directly to the link.xml file and then providing the full path from there? We could just stick it inside our project, copy it to their project in Plugins/SimpleGraphQL before build using a IPreprocessBuildWithReport.OnPreprocessBuild? (We could also do it on install when assets are being imported.)

NavidK0 avatar Jun 09 '21 22:06 NavidK0

For what it's worth I think we could also just create a file in /tmp/ (or its equivalent on windows)

So I guess one solution could be to just generate it from a constant c# string.

johanhelsing avatar Jun 09 '21 23:06 johanhelsing