Checking total number of particles in a scene

How to check the number of particles i have in the scene at any frame? I am trying to make a graph showing relationship between fps and total number of particles across multiple particle emitters.

Hey man,

I find the API for particle systems pretty dumb, here’s a way of doing it:

private ParticleSystem ps;
void Start () 
void Update()
        ParticleSystem.Particle[] particles=new ParticleSystem.Particle[ps.particleCount];
        int num = ps.GetParticles (particles);
	Debug.Log (num + "Particles Found");

Good Luck!