The Escape Button is a Feature

Now that you can build and test your game, you may have realized that you can only quit your game by clicking close window button if you are playing it in a windowed mode.

Evenmore, if you select the Fullscreen Window setting, build and run the game, you might realize that it will be impossible for you to quit the game without the Alt+F4 setting. Why?

Simply, your game is missing a key (or a button) which is assigned for quitting your game. It’s really easy. You need to add a button or assign a key for this purpose. The method

simply quits the application. So, make sure to have this option in your game manager script :).

--

--

Unity Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store