Search Issue Tracker

Active

Under Consideration for 6000.0.X, 6000.1.X, 6000.2.X

Votes

2

Found in

6000.0.50f1

6000.1.6f1

6000.2.0b5

Issue ID

UUM-108779

Regression

Yes

"Trying to draw gizmos while inside a renderpass" error message is thrown when Scene View Gizmos are enabled

-

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.50f1, 6000.1.0b15, 6000.1.6f1, 6000.2.0b5
Not reproducible in: 2022.3.63f1, 6000.1.0b14

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&)

Comments (2)

  1. themandrakg

    Jun 14, 2025 04:51

    Found a workaround for my case:

    What caused the bug: Updating unity engine did not update URP and caused the URP to become incompatible with new unity version.

    why the URP refused to update? i have no idea.

    workaround:

    1 - go to .\unity\*your project dir*\Packages and make sure that those 3 packages are not listed there:

    -> com.unity.render-pipelines.core
    -> com.unity.render-pipelines.universal
    -> com.unity.shadergraph

    if they are listed under this directory, it means you made a local override of URP. You will need to manually rewrite your override in the new version.

    once you made a backup of those files, remove them.

    2 - close your IDE, close unity.
    3 - .\unity\*your project dir*\Library\PackageCache and delete those:

    -> com.unity.render-pipelines.core
    -> com.unity.render-pipelines.universal
    -> com.unity.shadergraph

    restart unity and it will be forced to redownload URP to the lastest version.

  2. themandrakg

    Jun 13, 2025 21:34

    having the same problem:
    source: UniversalRenderPipelne.CS Line 887:
    "
    context.Submit(); // Actually execute the commands that we previously sent to the ScriptableRenderContext context
    "
    Being caused by gizmo calls from ScriptableRenderContext.CS

    USING: Unity 6000.051f1
    Worth of note:
    -> No default camera gizmo gets rendered.
    -> Can be ignored as long as gizmo's are off in scene view

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.