Search Unity

  1. Going to #UniteBerlin? Bring a buddy & get 25% off the 2nd ticket! More info here.
    Dismiss Notice
  2. Famed game designer and creator of The Sims, SimCIty, and Spore is looking for a 3D artist to join their team. Join the challenge.
    Dismiss Notice
  3. Unity 2017.4 has arrived! Read about it here.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. We've opened a new World Building sub-forum to faciltate all your world building discussions! Drop in and ask any ProBuilder, ProGrids, or PolyBrush questions.
    Dismiss Notice
  7. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Can worldspace UI be made to write to the depth buffer?

Discussion in 'Unity UI & TextMesh Pro' started by Dreamback, Apr 16, 2018 at 1:12 PM.

  1. Dreamback

    Dreamback

    Joined:
    Jul 29, 2016
    Posts:
    104
    I’m doing some post processing that requires every visible object write to the depth buffer, or that object’s pixels don’t get rendered. But I’ve got a worldspace canvas with a non-translucent panel and text(mesh pro) in the scene, and they don’t appear to be writing to the depth buffer.

    Is there a way to force UI elements to write to the depth buffer? Is there some hidden shader we can edit or something?