- Home /
Can you stop certain scripts from being compiled during build?
I have some scripts I wrote that I use for designing game levels. They will not compile at build time, as they use UnityEditor. I understand that, and I am fine with that. What I would like to be able to do is to his build and run and have those scripts skipped in the build, as they are only needed for development, not for the actual runtime. Is there any way to accomplish this?
Answer by bobisgod234 · May 29, 2017 at 03:56 AM
Platform dependent compilation.
#if UNITY_EDITOR
using UnityEditor;
class MyEditor : Editor
{
}
#endif
Your answer
Follow this Question
Related Questions
Character gets stuck where he spawns??? 1 Answer
Animation not working correctly 0 Answers
How can i set transform.position on y ? And why i'm getting error cannot convert double to float ? 3 Answers
HTC Vive Camera Height [VRTK] [Steam VR] [Open VR] 1 Answer
Disable all scripts on gameobject excluding the one calling for disable 2 Answers