Unity Issue Tracker - GizmoManager.DrawGizmos never finishes loading when opening Scene
Closed
UUM-44768
GizmoManager.DrawGizmos never finishes loading when opening Scene
Unity: Scene View
Third Party Issue
2023.2.X
2023.1.X
2022.3.X
2021.3.X
The fault is an infinite while loop in the project code, which assumes that Time.deltaTime > 0. On the first frame, deltaTime will be 0 as there is no previous frame to calculate delta against.
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/OpenMe.unity” Scene
Expected result: The Editor opens the Scene and allows to continue work
Actual result: GizmoManager.DrawGizmos never finishes loading
Project has a Gizmo function to draw a trajectory using the spell system, which calls this during an OnDrawGizmos. This would hang if Time.deltaTime is 0
Prioritise and Follow this issue
Have a workaround or additional info about this issue?