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

Question Priority in two system of the same VFX graph

Discussion in 'Visual Effect Graph' started by NewMagic-Studio, Jun 2, 2023.

  1. NewMagic-Studio

    NewMagic-Studio

    Joined:
    Feb 25, 2015
    Posts:
    432
    Hi,
    I know i can apply priority to the visual effect component but i have fire and smoke systems in the same vfx graph, using gpu event to inititate the smoke when fire particle dies. The problem is that fire is always over smoke no matter what i change. I selected the output block and changed in inspector the priority for both systems but doesn't work. I want that if i have some smoke nearer to camera than fire render smoke and not fire.

    Smoke in inspector
    upload_2023-6-2_16-25-0.png

    Fire in inspector
    upload_2023-6-2_16-26-1.png
     
  2. Marie_G

    Marie_G

    Unity Technologies

    Joined:
    Mar 9, 2021
    Posts:
    48
    Hello, changing the sorting order of 2 outputs in the same graph is doable in the inspector of the asset. You can see it by clicking on the VFXasset in your project files tab or by clicking in the empty space in the graph (not on an block).

    The sorting priority you see in the inspector of the output corresponds to the material sorting priority
     

    Attached Files: