Search Issue Tracker
By Design
By Design in 6000.1.X
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
- Addressables content build fails but the Player build is successful when building a development build
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
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
Resolution Note (6000.1.X):
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