Skip to content

Instantly share code, notes, and snippets.

@openroomxyz
Created April 18, 2020 19:12
Show Gist options
  • Select an option

  • Save openroomxyz/71ce5111da44415ce6fa81d16fcb97a6 to your computer and use it in GitHub Desktop.

Select an option

Save openroomxyz/71ce5111da44415ce6fa81d16fcb97a6 to your computer and use it in GitHub Desktop.
Unity : How to quit the application? [It works only with build application it does not work inside Editor]
if(Input.GetKeyDown(KeyCode.Escape))
{
Application.Quit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment