I want to check that some fields are nonempty before any of the
Start() functions run.
I tried to put checks in
Empty() and to quit Unity if they fail:
#if UNITY_EDITOR Debug.Log("exit from editor"); UnityEditor.EditorApplication.isPlaying = false; #else Debug.Log("exit from game"); Application.Quit(); #endif
It hits this code but it doesn't actually quit the game. I found that the
isPlaying = false commands only work from