Niagara Map For Not Working Correctly
How to do array add in niagara’s custom hlsl, I didn’t find any hlsl function for it.
My goal is to find each triangular shape of the skeletal mesh body that has a disproportionately large gap between its length and width ratio, and store the index of the triangular faces into an array
Niagara doesn’t report any error, but it’s just that my function isn’t working correctly. Theoretically, he should be giving me an array, but I’m checking later to see if it’s 0 or 1. I can’t quite remember. Anyway, map for shouldn’t be working correctly.
I iterated my code
Now using the official function to add to the array but it still doesn’t respond Debugfloat output is always 1
However, if I put it in the system update stage.
The DebugFloat number keeps getting bigger, probably by 1 per frame, and I think there’s something wrong with the for loop, but I don’t know why.