Search Unity

Sub Emitters?

Discussion in 'Visual Effect Graph' started by Phantom_X, Mar 12, 2020.

  1. Phantom_X

    Phantom_X

    Joined:
    Jul 11, 2013
    Posts:
    314
    Hi,
    Is there any way to have a sub emitter the way Shuriken was doing it? For example, when a particle dies, spawn spawn an effect there or an emitter that follows a particle's position?

    thanks!
     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @Phantom_X ,

    Yes! You will first need to enable the experimental operators/blocks:
    upload_2020-3-17_11-34-9.png

    Then you can add a trigger block in Update, connect it to a GPU event, and inherit any parameters you want in the new "sub emitter" system. Here is an example:
    upload_2020-3-17_11-41-38.png

    And of course make sure the sub emitter system has a large enough capacity to accommodate the number of particles you are sending from the parent system, otherwise you won't see all the particles.

    Hope this helps!
     
  3. Phantom_X

    Phantom_X

    Joined:
    Jul 11, 2013
    Posts:
    314
    Hey,
    Thanks for the example, definitely helped!

    I also wanted the sub particles to follow the main particle so it would leave some kind of trail.
    Taking your example I changed the trigger event on Die to a Trigger Event Rate (Over Time) to achieve the effect I was looking for.
     
    VladVNeykov likes this.