How to Close your Game in Unity
Apr 18, 2021
When building a game in Unity, you need to create a way for players to close your game without having to use task manager. This is a very simple thing to do.
- Open your Game Manager Script
- Inside the Update function create an if statement that will detect if the player hits the escape key the game will close.
- It is that simple. You will have to build your game to test this feature because the unity engine will ignore it.