Search Unity

Question Is there a way to spawn a particle system on another particle emitter's death?

Discussion in 'General Graphics' started by vaylen, Nov 22, 2023.

  1. vaylen

    vaylen

    Joined:
    Jul 11, 2013
    Posts:
    3
    I am working in Shuriken and want to make an "outro" effect which spawns when another emitter dies. I have an emitter which makes a single particle which lasts for 1 second every second and the emitter loops forever until it is killed by any outside game event. I'd like to spawn a non-looping particle emitter that makes a single particle that fades out when the original particle emitter dies. This is so I can have a persisting loop of a non-fading particle that when killed will create an "outro" version of that particle that fades out. I've used other systems in the past that let you make a looping event on a timeline and then a second event that only happens when that looping one is killed, but I haven't been able to find such a feature in Unity's timeline feature. I have also used systems that let you spawn a particle system on the death of an emitter or on the death of a particle, but it appears Unity only supports the creation of a particle system on the death of a particle.

    Has anyone found the need to do what I am trying to do and found a way to do it in Unity?
     
  2. richardkettlewell

    richardkettlewell

    Unity Technologies

    Joined:
    Sep 9, 2015
    Posts:
    2,285
    there is a Stop Action in the main particle system settings that may let you do this. you can make it call MonoBehaviour.OnParticleSystemStopped in script.