Implementation: Quitting from main menu stops Editor play mode

Summary: I think the editor should end game mode, if the user exits from the main menu. It is simple to do in code.

Repro steps:

  1. Run the game in editor
  2. Get to the Main Menu
  3. Exit → Confirm Exit

Result:
4. Nothing happens

Expectation:
5. If in editor, editor stops play mode
6. If in stand-alone, application closes

I have added a pull request for this refactor/implementation: Implement: MainMenu->Exit stops Editor play mode by paciFIST-Studios · Pull Request #481 · UnityTechnologies/open-project-1 · GitHub

1 Like

Is it really needed? Entering and exiting Play mode can be a time consuming operation (thankfully not too much on this project). So when one presses the button even if just to test it and it exits Play mode, it’s more damage than good. We already have a Debug.Log informing the user that the button works.

I must defer to your judgement on this topic. I submitted a pull request because I thought this would be an improvement. I do not mind closing the pull request.

2 Likes

Yeah, I see that it could seem like a logical “quit” in the editor, but I do think it introduces more annoyance than usefulness. So I’ll proceed to close the PR. Thanks anyway :slight_smile:

I would also see it as improvement and implement it in own projects that way. When you sometimes test the build (which I find very necessary, especially with Addressables) and sometimes in the editor you kind of stumble over the different behaviour again and again.

@cirocontinisio

Thank you.

@Smurjo :

Thank you.

1 Like