Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Sorting Priority with Custom Shader on VFX Graph

Discussion in 'Visual Effect Graph' started by Qais69700, Apr 4, 2024.

  1. Qais69700

    Qais69700

    Joined:
    Mar 25, 2022
    Posts:
    3
    Hi everyone !

    I'm currently doing a vfx on VFX Graph and using a Custom Shader on a Mesh Output. I would like to change the sorting priority as it is at 0 on all my meshes, which creates an interaction with the transparency that I don't want to have.

    On the screenshot below, I want the ring to be in front of the cylinder but it's behind rightnow. Both are Transparent + Alpha.

    Does anyone know the solution?

    Basics shader does have sorting priority parameter, but the custom shader doesn't want it to appear.


    sorting02.png vfx.png
     
  2. Qais69700

    Qais69700

    Joined:
    Mar 25, 2022
    Posts:
    3
    Ok I found the solution, I had to put the "Rings" layer in LAST in the list to be rendered FIRST, that why I was confused, that was actually my bad.

    upload_2024-4-9_12-13-54.png
     

    Attached Files: