Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Transparency Order

Discussion in 'General Graphics' started by compyler, May 28, 2022.

  1. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    Hi,

    I have a transparency order problem with 2 objects: A red ring and a laser. The ring is on the floor and I want the laser to appear ABOVE the red ring.

    The red ring is just a polygon object with shader "Mobile/Particles/Alpha Blended" and Render Queue set to "Transparent+10 3010"
    The laser is a line renderer whose material shader is "Mobile/Particles/Alpha Blended" and Render Queue = Transparent+20 3020

    I always thought the number determines WHEN something is rendered, thus I thought the laser (3020) should always be renderer AFTER the red ring (3010)
    Unfortunately its not the case. The laser is below the red ring:


    Does anyone know why the laser is below the ring even though the laser has a bigger Transparency number?
    How can I fix this?
     
  2. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    Nobody has an idea?