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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.

Render VFX particles according to the coordinates of the Z-axis.

Discussion in 'Visual Effect Graph' started by komiya_unity, May 18, 2022.

  1. komiya_unity

    komiya_unity

    Joined:
    May 17, 2022
    Posts:
    3
    I am using an automatic translation, so I apologize if some parts are difficult to understand.

    I created a VFXGraph that draws a large amount of grass at once, and a VFXGraph of the flames when that grass is burned, both with nearly identical content.

    Both grass and flame particles are generated from the same coordinates, but when the flame is generated, it is always drawn in front of all the grass.
    How can I make the grass in front of the flame appear above the flame?

    - Grass
    grass_vfxgraph_1.png

    grass_vfxgraph_2.png

    - Flame
    flame_vfxgraph_1.png

    flame_vfxgraph_2.png