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
- Dropdown search icon is used next to the UI Builders Library search when the search has no dropdown functionality
- UI Builders library selection buttons tooltips are not in accordance with the Editors foundations
- Blue highlights appear when some of the UI Builders panels are focused
- Property fields overlap in the Override window when comparing changes
- "Timeflow Animation System" custom package appears twice in the Package Manager
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