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
- Warning "Unable to load Unity.Android.Gradle's referenced assembly NiceIO ..." when recompiling scripts
- "InvalidOperationException: Trying to SetRenderAttachment on a texture..." exception is thrown when using the depth back buffer as an input attachment in Renderer Feature on Vulkan Graphics API
- [HDRP Wizard] Reload Window fails to reload the HDRP Wizard window
- [HDRP Wizard] Fix All button is not presented using the macOS system
- "InvalidCastException: Specified cast is not valid" is thrown when Generating Lighting with "Virtual Offset" enabled in APV, and a static Skinned Mesh Rendered with a Mesh Filter Component is in the Scene
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.