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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
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.