Search Unity

Particle system, stop action destroy, loop and duration problem.

Discussion in 'General Graphics' started by koirat, Aug 19, 2019.

  1. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,073
    It looks like stop action destroy is not working when particle is set to loop. So even when we set emission to false and all particles disappear it will still stay in hierarchy.
    And when you disable loop than it will stay there for a while until it's duration runs out. (even thou there are no particles)
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    A system set up like that will always be in its playing state. (i.e. how can we know you wont set emission to true later?)
    To use the stop action on a looping effect, you will need to use the ParticleSystem.Stop API instead, because the stop action responds to changes in the playing state, not whether or not the emission module is enabled.