When adding editor scripts to the project, the generated C# project will reference UnityEditor.dll and the Assembly-CSharp.dll (editor code has access to the unity editor and to all "runtime" game code).
I've just realized now that the generated project Assembly-CSharp is automatically set to reference UnityEditor.dll as well.
What is the logic behind this ? runtime code cannot use any editor features. Is this solely for the purpose of running it in the editor ? If so, why not create that code in Editor folders ?
↧