Search Issue Tracker
By Design
Votes
0
Found in
2021.3
2022.1
2022.1.0f1
2022.2
Issue ID
1420088
Regression
Yes
Game Window isn't focused when entering Play Mode after opening a second game window and closing the primary one
Repro steps:
1. Create a new project
2. Open a second game window next to any other window and focus that other window
3. Enter Play Mode and observe that the primary game window is focused
4. Close the primary game window
5. Enter Play Mode
Actual: The only game window that is still opened isn't focused
Expected: Unity focuses the only game window
Reproducible with: 2021.3.1f1, 2022.1.1f1, 2022.2.0a10
Not reproducible with: 2019.4.38f1, 2020.3.33f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
- Animator window Eye button on click visual does not cover the whole area of the button when clicked
Resolution Note (2022.2.X):
I was able to reproduce this ticket, but it looks like intended behaviour to me. Each Game View has a "Focus" toggle that must be ticked to take focus on entering play mode. In the scenario described, the new Game View does not initialize with "Focus" enabled, and thus is (correctly) not focused when entering play mode.