Unity Deployment: The Escape Button is a Feature

--

Before you build your game in exclusive full-screen mode, you should first think about adding an exit feature to your application, otherwise there will be no way to exit the game or close the game window.

This is easy to do, just use the condition and check the input key for “Escape” and then use the “Quit” method of the “Application” class:

Remember not to copy code, if you are not sure how to write a function, try to find it yourself using the Unity documentation available at the link below:

Happy Coding!

--

--

Damian Dąbrowski

Hi, I’m Damian, a Software Engineer who loves building educational apps and simulations..