Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
theregoes2's avatar
theregoes2
Protege
11 years ago

Using Esc to exit

I'm not sure if this should be here or in the Unity Forums but how do people make it so that you can use ESC to exit your demo? I'm brand new to this and at the moment I have to CTRL+ALT+DEL to get out every time and it's really annoying.

2 Replies

  • If you are a Unity developer, you can add escape to exit like this:

    if (Input.GetKey(KeyCode.Escape)) Application.Quit();


    If you just downloaded compiled apps, then this won't work. However you can press ALT + F4.