Skip to main content
Up and Coming
January 6, 2015

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

    Inspiring
    January 6, 2015
    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.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    January 7, 2015
    Thanks!
    Ordered: June 4th Status: Strapped to my ugly mug ON, Canada