- Home /
Question by
vividhelix · Apr 03, 2013 at 04:31 PM ·
colorparticle systemlegacy
(legacy) Changing color only of new particles
Is there a way to change the color only of newly emitted particles for a legacy particle system? I'm retrieving the particle animator and changing its colors (the array of 5 colors) but that also affects existing particles.
Comment
Best Answer
Answer by Jessy · Apr 03, 2013 at 06:08 PM
No. The lifetime of the particle provides a lookup into the ParticleAnimator.colorAnimation array. The vertex colors of the particles are set to whatever interpolated color results along the timeline.
You could create a new system, and use ParticleAnimator.autodestruct = true on the old one.
Yeah, that's what I ended up doing. Also stopped emitting (.emit = false) on the old one.
Your answer
![](https://koobas.hobune.stream/wayback/20220613095624im_/https://answers.unity.com/themes/thub/images/avi.jpg)