Unity3D Preprocessor directives
#if UNITY_EDITOR // stuff that only is going to happen inside the editor #endif // run stuff in editor [ExecuteInEditMode] public class HelloWorld : MonoBehaviour { }