Change particle count in code

Hello. I can’t find the particleCount parameter in the particle component object. This parameter can be changed via the code? It is also not specified in the documentation…

Hi @sergey_ch,

Can you try the numParticles property on the particles component?

https://developer.playcanvas.com/en/api/pc.ParticleSystemComponent.html#numParticles

1 Like