Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug After updating from 2018 to 2019.4 Gizmos does not render in scene view

Discussion in 'Editor & General Support' started by Mirusa, Feb 24, 2021.

  1. Mirusa

    Mirusa

    Joined:
    Oct 15, 2019
    Posts:
    10
    Hello,

    we have a problem that has been bothering us for quite some time. After we updated from unity 2018 to 2019.4 gizmos stopped working. The function still triggers but nothing is rendered on screen. Gizmos is toggled on and all Scripts are checked for display. I noticed that one component with Mesh Renderer is being displayed properly. Any idea what might be the problem. Thanks in advance.
     
  2. Mirusa

    Mirusa

    Joined:
    Oct 15, 2019
    Posts:
    10
    Seems like custom render pipeline is somehow preventing gizmos from being draw. Is there a way to command in custom render pipeline for gizmos to be drawn on scene camera.
     
  3. Mirusa

    Mirusa

    Joined:
    Oct 15, 2019
    Posts:
    10
    Seems like adding
    if (Handles.ShouldRenderGizmos())
    {
    ctx.DrawGizmos(cam, GizmoSubset.PostImageEffects);
    }

    fixes the issue. ctx is ScriptableRenderContext this should be written before ctx.Submit