Manual     Reference     Scripting  
  
Scripting > Editor Classes > EditorApplication   

EditorApplication.Exit  

static function Exit (returnValue : int) : void

Description

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