Created
April 18, 2020 19:12
-
-
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]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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