EditorApplication.Exit Manual     Reference     Scripting  
Scripting > Editor Classes > EditorApplication

static function Exit (returnValue : int) : void


Exit the Unity editor application.

Calling this function will exit right away, without asking to save changes, so you may lose data! This function is mostly useful for exiting out of a commandline process with a specific error. See Also: Commandline Arguments