Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Visual Effects Graph Sorting?

Discussion in 'Graphics Experimental Previews' started by feinei, May 28, 2020.

  1. feinei

    feinei

    Joined:
    May 28, 2014
    Posts:
    2
    Hello, I'm fairly new so I hope this is the proper place to ask this;
    I just started making visual effects for my 2d game with the Visual Effects Graph and they're incredible, however I can't seem to figure out how to sort them properly. The problem isnt sorting the particles between themselves, but rather taking the entire ready-made effect as a prefab and having it be behind other game objects in the world. Right now I have a level up light explosion that I want to appear behind the player, but it appears on top.
    upload_2020-5-28_23-33-5.png upload_2020-5-28_23-33-20.png

    Up until now I sorted these things via the sprite renderer's sorting layer feature, but the VEG doesn't have that. What can I do to get this effect behind the player?