Output an array from custom HLSL script in Niagara?

Hi there,

I’m trying to output an integer array in a custom HLSL script but I’m falling down at the first hurdle.

I’m setting the output pin to an Int32 Array, called “Path” but keep getting an “Incorrect number of outputs” error.

Even if the script is as simple as just declaring the variable. I’ve tried:

int Path[2];

int Path[2] = {0,0};

What am I doing wrong?

Many thanks

Late reply, but i’ve been struggling with the same. I found that you can pass the output array INTO the HLSL script, and then modify it as you want. Then pass some arbitrary dummy value out of the script to make it execute. See the following example, it takes a bunch of vertices and outputs the normals of their triangles: