I have a projectile that is leaving a particle trail behind. When the projectile hits the target it dies, which instantly kills all the particles in the trail. How can I tell the particles to live out their normal lives even if the emitter is dead?
2 Answers
2My suggestion is that you take the projectile and move the trail to a child object of the projectile. Then edit your blow projectile up on hit script and add this line before the projectile is destroyed
transform.GetComponentInChildren(ParticleEmitter).emit = false;
transform.DetachChildren();
This stop the particle system from creating new particles, while still keeping the old ones.
Hope this works for you. ![]()
~ExplodingCookie
Don’t kill the emitter on impact. Disconnect it from the projectile and let the particle system live out its life.