If or Switch inside scratch pads? (UE5)

I cannot figure this one out! UE5…

I’m trying to use the Map For node in the emitter spawn phase to scan all triangles of the mesh and get those that are orthogonal to the camera and save them indexes in a Niagara Int Array so I can use those indexes to spawn the particles on the correct triangles to make a outline.

Problem is Select doesnt work in the execute line so not sure how to condition check a logic AND operator inside of a Niagara scratch pad. I want to run a switch or if condition based on whether it’s a or b. Switch nodes are not compatible and if nodes I learned are deprecated. I do not know how to achieve this.

image

I don’t think Niagara nodes support branching. I would try doing this in a HLSL node

1 Like