How to set your game application up with a Quit button | Unity 2D

Chelsea Cruise
Nov 17, 2021

If you’re developing for web or PC, you’ll need a quit button so the user can exit your game without frustration. Here how to do it!

In your GameManager script, we want to tell the game that when we press the escape key — quit application.

You can’t test this out in the Unity editor, however, once you build your game, you will have a fully functional escape key that quits your application.

--

--

Chelsea Cruise

Unity Developer, Software Engineer, Game Designer, Graphic Artist