Steps to reproduce:
1. Open the attached “Repro.zip“ project
2. Open the “_Menu” Scene
3. Open the Scene View
4. In the top-right corner, enable Gizmos
6. Do anything in the Scene View
7. Observe the Console Window
Expected result: No error messages and Gizmos are rendered
Actual result: “Trying to draw gizmos while inside a renderpass.” error is thrown and Gizmos are not rendered
Reproducible in: 6000.0.47f1, 6000.0.59f1, 6000.2.8f1, 6000.3.0b5, 6000.4.0a2
Not reproducible in: 2022.3.63f1, 6000.0.46f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Not reproducible on a new project
Error message:
Trying to draw gizmos while inside a renderpass. This is not supported, gizmo drawing will be skipped.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)