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
- Material property block emits and reflects incorrect color when baked Indirect Light is used
- DLL and Render Pipeline reload execution order is incorrect when loading RenderDoc
- [Quality Hackweek] [macOS] The letter ‘p’ is not continuously entered in a sticky note when holding the ‘p’ keyboard key
- Double separation lines are present in Override Controls in a new Volume Profile Asset
- Timeline UI elements overlap with the toolbar and property section when resizing a docked Animation window horizontally
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