Search Issue Tracker
By Design
Votes
0
Found in
2021.3.39f1
2022.3.32f1
6000.0.5f1
Issue ID
UUM-73805
Regression
No
WaitForEndOfFrame does not work when the Game view is not visible
Reproduction steps:
1. Open the attached "Report_Sceneview" project
2. Open the “Assets/Scenes/SampleScene” scene
3. Enter the Play mode
4. Observe the Console logs
5. Switch to the Scene view
6. Observe the Console logs
Expected Result: “start TestRoutine” and “end TestRoutine” are thrown in the Console when the Game view is visible and not visible
Actual Result: “start TestRoutine” and “end TestRoutine” are thrown only when the Game view is visible, and only “start TestRoutine” is thrown when the Game view is not visible
Reproducible with: 2021.3.39f1, 2022.3.32f1, 6000.0.5f1
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
Resolution Note:
This is actually as designed and documented in https://docs.unity3d.com/ScriptReference/WaitForEndOfFrame.html:
WaitForEndOfFrame is tightly related to game rendering and so, if the gameview is not active, or if the editor is executed in batch mode - and thus the game itself is not rendering - the end of frame event is not raised.