I have created a bunch of custom packages and I import them from a self hosted UPM-esqe registry.
I have some editor code in those packages that will naturally cause a Win64 executable build to fail.
So I have encapsulated the editor code in #if UNITY_EDITOR / #endif
I’ve tested my code without the package and it works fine
However, when I import the code as a package, the #if UNITY_EDITOR doesn’t have UNITY_EDITOR set on my package code compilation stage and my editor tools are consequently missing.
Any idea how this can be fixed?
Thanks in advance