Do scripts in a folder called "Editor" get left out of a build?

Or should I be using Platform Dependent Compilation (#if UNITY_EDITOR) to eliminate the code from entire classes being compiled into a build?

I've always wondered this myself :)

1 Answer

1

Yes they are left out as editor scripts don't work in the client at all

No citation needed - UnityEditor.dll is never added into a build, and the editor scripts never compiled. Otherwise you'd end up with huge issues at runtime