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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
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.