Question by
largestarsinthenight · Mar 22, 2020 at 10:50 PM ·
scripting problem3dparticlesystem
ParticleSystem.Particle[] gives error
Hello, I am very new to scripting and sorry if this is a stupid question. I just wanted to get the number of live particles in a particle system.
ParticleSystem ParticleSys;
ParticleSystem.Particle[] numParticles;
void Start() {
ParticleSys = GetComponent<ParticleSystem>();
}
void Update() {
int ParticlesAlive = ParticleSys.GetParticles(numParticles);
}
Yet the editor says "Particle does not exist in type ParticleSystem" on the second line. I can't really do anything since I don't even know what's wrong to begin with. I read stuff online, and one of them said some sort of particle system api was removed? Though I'm not sure, and some guidance would be really nice.
Thanks.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612225514im_/https://answers.unity.com/themes/thub/images/avi.jpg)