# How can I know the number of particles in a particular state?

**URL:** <https://forums.unrealengine.com/t/how-can-i-know-the-number-of-particles-in-a-particular-state/574970>\
**Category:** FX\
**Tags:** unreal-engine, UE5-0, question\
**Created:** [June 6, 2022, 2:51am UTC](https://forums.unrealengine.com/t/how-can-i-know-the-number-of-particles-in-a-particular-state/574970 "2022-06-06T02:51:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmtzcain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmtzcain](https://forums.unrealengine.com/u/dmtzcain)\
**Post date:** [June 6, 2022, 2:51am UTC](https://forums.unrealengine.com/t/how-can-i-know-the-number-of-particles-in-a-particular-state/574970/1 "2022-06-06T02:51:39Z")

</div>

I am sapling a Skeletal Mesh that affects particles in certain ways.

**How can I know the number of particles “sampled”/“affected”?**

The EMITTER.NumParticles returns the total number of particles, I just want the ones that were sampled by the Skeletal Mesh.

The particles affected by the Skeletal Mesh change velocity from 0,0,0, to 250,0,0. So, another way of knowing the number of sampled particles would be to know how many particles have 250,0,0, velocity and how many 0,0,0.

Could “Particle Attribute Reader” be used for this?

Thanks!  
David.

---

<div class="post-metadata">

**Author:** ![dmtzcain](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dmtzcain](https://forums.unrealengine.com/u/dmtzcain)\
**Post date:** [June 6, 2022, 1:50pm UTC](https://forums.unrealengine.com/t/how-can-i-know-the-number-of-particles-in-a-particular-state/574970/2 "2022-06-06T13:50:49Z")

</div>

Solved it,  
by making a Niagara Particle Callback Handler, I got an array of the particles affected. I just got the Length of that array and that way I got the number of particles affected by the state of my Niagara System. For some reason, the “Length” is not exactly the number of particles, but close enough for my purposes.

Cheers!
