Feature Request - Stop Button

The most annoying thing about Unity (and surprised this hasn’t been fixed in last decade) is this:

There is no stop button.

The amount of times I want to stop the game in the editor and I have to de-click the play button but I accidentally clicked it an odd number of times so the game re-starts again!!!

Who agrees? :eyes::slight_smile:

Who’s silly idea was it that you have to click the start button to stop the game! :roll_eyes::eyes:

7 Likes

It happens to me a lot too, (especially now that my mouse has a clicking problem, gotta replace it) would be cool if they would add a dedicated button that only stops or make a small delay where it doesn’t start when clicked after stopping.

Happened to me literally about an hour ago lol

1 Like

How about getting used to hit the keyboard shortcuts ?

Or how about Accessibility?

1 Like

I think a stop button would be nice, but especially if it contained infinite loop escape functionality like the old Panic Button asset. This would be a nice UX and functionality boon.

7 Likes

How about unresponsive play and pause/unpause buttons? :slight_smile:
But actually, since I haven’t checked, can you setup only stop shortcut?

I am finding all fine with buttons, as long all is nice and responsive. I remember similar thread a year ago or maybe 2. People were complaining about accidental double clicking.

My issue is however, if testing buggy unresponsive code, with some long loop, lag and trying to stop editor play mode. It is not uncommon in such case, to hit play, or pause few times, hopeing editor will catch one of the hits commands. Then realising, editor pauses and unpauses, or stops and starts after few second lag, which can be annoying. Is like playing a catch game.

1 Like

There is a keyboard shortcut to stop? :hushed: Now you tell me.

1 Like

I meant, I haven’t checked, if such exists.
But since I am now with editor, I could check and there is none.

6661987--761983--upload_2020-12-27_14-12-18.png

There is also Step shortcut a bit lower in the list (alphabetically ordered).

Save the following code snippet as Editor/PlayModeStopButton.cs

#if UNITY_EDITOR
using UnityEditor;

class PlayModeStopButton
{
    [MenuItem("Edit/Stop", priority = 160)]
    static void DoMenuItem()
    {
        EditorApplication.isPlaying = false;
    }
}
#endif

… then go to Edit > Shortcuts... and pick a shortcut for it.

6662008--761986--upload_2020-12-27_14-34-53.png

Voila!

6 Likes

Perfect it works. Thx, I love that magic. :slight_smile:

6662071--762001--upload_2020-12-27_15-5-34.png

Wonder if Alt + s vs Ctrl+Shift+Alt + s have pros / cons.
Or is just up to user preferences?

1 Like

Fully agree. Absolutely stupid there’s not a stop button by default. It’s remarkable really. I shake my head everyday.

OMG! Am I the only one who pauses the game to inspect something and then hits the PLAY button to start again only to have the game stop!!! Every. Single. Time. Grrrrr… At least change the icons on the buttons if you insist on toggles.

3 Likes

Place it here in this A thread for features that Unity should have.
That way Unity won’t be overloaded with duplicates!

This thread predates that one by over a year and a half. Who cares?

Was just about to make a thread for this. Would be a nice QOL feature.

Yeah I always thought about this, doubt they will add it though. Do they even have a QOL team now Aras is gone?

For real, I don’t even think we need another button. We should not be able to double-click the play button.

3 Likes

We DO need another button. I even mention a specific use case in this very thread:

The fact that we have to kill the entire editor process if a runaway loop happens in a script is frankly embarrassing.

Whoever codes that loop should wear that shame as they kill the process in Task Manager. :y