My dll references the UnityEditor, and contains code which is used to draw an editor windows using custom controls etc.
It works fine in the Unity engine. I can use my Editor Window without error.
However during builds I receive an error stating that the UnityEndor is not allowed to be included or is missing . Now . I KNOW that the game cannot be built when we include the UnityEditor dll into code which SHOULD be exported with the build.
However this is nothing but Editor and editor window related code. Image just creating an Editor window script in your Assets > Editor folder and at build, being told that the build cannot happen because you are using the UnityEditor.dll .
I dont understand why , simply placing the script in a dll causes this issue.
Even if I delete my dll, the game will still work, it is completely unnecessary for it to be included in builds , so why is unity attempting to include it and how can i prevent that ?