Search Unity

Resolved URP 2D Z sorting issue when 2D Lights are added.

Discussion in 'Universal Render Pipeline' started by SystemId, Jul 9, 2020.

  1. SystemId

    SystemId

    Joined:
    Aug 5, 2016
    Posts:
    11
    I'm running into a weird bug when using the URP 2D renderer and 2D lights.

    I'm working on a 2D Isometric game, where the characters draw perfectly fine in URP 2D. (The characters can move around an isometric block and its drawing order is perfectly fine.)

    Once I add a 2D light into the Scene, it feels like Z values change and the characters no longer draw correctly around an isometric block. It goes back to working fine once I delete the Lights though. Anyone have insight to why this might be happening / what I can do to work around this?
     
  2. SystemId

    SystemId

    Joined:
    Aug 5, 2016
    Posts:
    11
    Nevermind. I switched my project over to URP 2D, and I didn't realize you had to modify the Transparency Sorting Mode on the 2D Renderer itself, rather than in the Project Settings > Graphics.