Hello! Anyone know how to iterate through array (like for each loop node) in Niagara?

On spawn particle i need to compare particle position with the every vectors from array (it’s user parametr).
I can’t find anything like “for each loop” node in scratch pad of new module(

I am not really sure on what you are trying to do as my knowledge regarding particles are quite limited. Here is howeve how you can use a Niagara system through blueprint to get the Position Array and loop over it.

  1. Add a Niagara Particle System Component
  2. Add it to the grid by dragging and dropping it.
  3. Add the other nodes seen in the screenshot below:

I believe that in Niagara loops can be done only trough a custom hlsl node

3 Likes

That’s right. I found and used this way