Sitemap

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

Nov 17, 2021
Press enter or click to view image in full size

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.

Press enter or click to view image in full size

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
Chelsea Cruise

Written by Chelsea Cruise

Unity Developer, Software Engineer, Game Designer, Graphic Artist