- Home /
Question by
mostlyhuman · Jul 02, 2016 at 06:47 AM ·
exithotkeys
Is there a hotkey to exit a unity build?
I do a lot of test builds and was wondering if there was a default built in hotkey to exit a unity executable instead of having to alt-tab and shut down manually. I realize I can code one but was just wondering if they have something built in. Cheers.
Comment
Best Answer
Answer by mostlyhuman · Jul 14, 2016 at 04:53 PM
ALT+F4 is working splendidly, thanks :)
Answer by tanoshimi · Jul 02, 2016 at 06:51 AM
There's nothing built-in unless you coded it. Just include this somewhere in a script attached to any gameobject in the scene:
void Update() {
if(Input.GetKeyDown(KeyCode.Escape))
Application.Quit();
}
Well, on windows you can ter$$anonymous$$ate most applications with ALT + F4. I'm not sure about other platforms.