# Pass array of positions to Niagara

**URL:** <https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224>\
**Category:** FX\
**Tags:** unreal-engine\
**Created:** [July 26, 2019, 3:49pm UTC](https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224 "2019-07-26T15:49:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SineVFX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SineVFX](https://forums.unrealengine.com/u/SineVFX)\
**Post date:** [July 26, 2019, 3:49pm UTC](https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224/1 "2019-07-26T15:49:35Z")

</div>

Hi,

Is it possible to somehow pass the array of positions to Niagara? For example, I have 12 players on the map and I have some snow dust particles made with Niagara. I want to create a sphere distance mask from each particle to each of the players. So I need an array and loop through it inside Niagara, is it possible?

---

<div class="post-metadata">

**Author:** ![Manoel.Neto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manoel.neto/32/1210013_2.png) [@Manoel.Neto](https://forums.unrealengine.com/u/Manoel.Neto)\
**Post date:** [July 26, 2019, 10:33pm UTC](https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224/2 "2019-07-26T22:33:56Z")

</div>

You could use a render target. Write the positions as colors, then sample the texture in Niagara (GPU particles).

---

<div class="post-metadata">

**Author:** ![SineVFX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SineVFX](https://forums.unrealengine.com/u/SineVFX)\
**Post date:** [July 27, 2019, 12:54am UTC](https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224/3 "2019-07-27T00:54:13Z")

</div>

> [@Manoel.Neto](#):
>
> You could use a render target. Write the positions as colors, then sample the texture in Niagara (GPU particles).

This is a nice idea, thx. But how will I be able to loop through every UV position inside NIAGARA nodes?

---

<div class="post-metadata">

**Author:** ![Manoel.Neto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manoel.neto/32/1210013_2.png) [@Manoel.Neto](https://forums.unrealengine.com/u/Manoel.Neto)\
**Post date:** [July 27, 2019, 1:26am UTC](https://forums.unrealengine.com/t/pass-array-of-positions-to-niagara/129224/4 "2019-07-27T01:26:21Z")

</div>

If the number is fixed, you don’t really need a loop. Otherwise maybe you can write custom HLSL.
