Quit Application in editor

Hey !

Just to complete this lecture, to quit application in editor and in the final build try this

#if UNITY_EDITOR
    UnityEditor.EditorApplication.isPlaying = false;
#else
    Application.Quit();
#endif
1 Like

Privacy & Terms