- Home /
How to get newest Particle in a ParticleSystem
Hello everyone,
I'm trying to work my way around the limitations of the shuriken particle system (ParticleSystem-wide pivot, no retun on ParticleSystem.emit(), etc.), and I'm trying to find out how to get the newest particle in a particle system.
So far, this is what I've gathered: - There is no "OnParticleCreation(particle)" or similiar callback. - ParticleSystem.emit() returns void instead of created particle(s).
I then tried something like
int alive = system.GetParticles(particles); particles[Mathf.Max(alive-1, 0)].color = Color.red;
to get the newest particle, which doesn't work all the time either.
So, my question: How can I get the newest particle in a system as an object?
Thanks for your answers!
Is the particle system really so limited you can't even track down new particles?
Your answer
![](https://koobas.hobune.stream/wayback/20220612080612im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Destroy particles based on bounds not lifetime 0 Answers
Teleporting old particle system 0 Answers
Two Particle Systems 1 Answer
Resetting non-looping particle system 5 Answers