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

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.