Search Unity

Question Is it possible to change the opacity of occluded gizmos?

Discussion in 'High Definition Render Pipeline' started by hadynlander, Oct 12, 2022.

  1. hadynlander

    hadynlander

    Joined:
    Jan 24, 2014
    Posts:
    41
    Gizmos drawn with various Gizmos.Draw[X] methods have their opacity greatly reduced when occluded by other geometry. Example:

    upload_2022-10-12_16-10-34.png

    I'm encountering a lot of cases where this is making debug information incredibly difficult to see, e.g. when debugging navigation paths which frequently intersect terrain.

    Is the opacity of occluded gizmos configurable anywhere? Ideally there'd be some way to set the occluded alpha between Gizmos.Draw[X] calls, similar to setting Gizmos.color - but I'd settle for a global slider...

    I'm aware I could fudge it by drawing everything closer to the camera, but I'd rather avoid those sorts of hacks if I can help it.

    Cheers in advance,
    Hadyn
     
    Whatever560 and Hallur90 like this.
  2. Hallur90

    Hallur90

    Joined:
    Dec 4, 2017
    Posts:
    55
    I'd love to see a gizmo property where you could toggle gizmo occlusion on/off.

    Being able to adjust their opacity would be awesome too.
     
    hadynlander likes this.
  3. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    517
    This would be great, for now the only workaround I have is to manually add a mesh renderer. Which is ofc not a good solution.
     
    hadynlander likes this.