Search Issue Tracker
By Design
Votes
0
Found in
6000.1.0a5
Issue ID
UUM-86918
Regression
No
Showing a progress bar in EnteredPlayMode will cause play mode to become focused, even with Play Unfocused selected
Steps to reproduce:
1. Change Game View to Play Unfocused
2. Focus game view by clicking into it
3. Enter Play Mode with Game View focused
4. Note that Game View will be unfocused
5. Exit Play Mode, and pop the snippet in Notes into a new class
6. Focus back into Game View and hit Play
Actual results:
Game View remains unfocused, even when the progress bar disappears
Expected results:
Game View is refocused
Reproducible with versions:
6000.1.0a5
Not reproducible with versions:
Can't test with versions:
Tested on (OS):
Apple M2 Max MacBook Pro (32GB system memory, 12 core CPU) running macOS 15.1
Notes:
- This can impact users who might need to test if the Editor is unfocused
- The workaround is for users to select another part of the Editor's UI before entering play mode - e.g focusing the Inspector
- This is a bug, as per UUM-74498
Repro Snippet
[InitializeOnLoadMethod]
{{private static void PlayModeRefocusRepro()}}
{{{}}
{{EditorApplication.playModeStateChanged += change =>}}
{{{}}
{{if (change == PlayModeStateChange.EnteredPlayMode)}}
{{{ EditorUtility.DisplayProgressBar("foo", "bar", 0.0f); System.Threading.Thread.Sleep(10); EditorUtility.ClearProgressBar(); }}}
{{};}}
{{}}}
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
- TextMeshPro UV2 custom data not rendering for off-screen text with RectMask2D in Unity 6
- Text overlap and is unreadable in Inspector > Terrain Paint Texture after creating new Terrain Layer
- Event "XRInputSubsystem.trackingOriginUpdated" triggers twice when recentering the view
- UITK TextField value is overwritten incorrectly by the converter result when Binding Mode is set to "To Source"
- Out of memory crash when selecting more than 80000 Assets simultaneously
Resolution Note:
According to our documentation this is by design. The Game View should not be given focus even after displaying the dialog. After dismissing the progress dialog the last view is refocused but the Game View was not focused so it should regain it in this situation.
Play Unfocused Do not shift the focus to the selected Game view when you enter PLay mode.
https://docs.unity3d.com/Manual/GameView.html