@ShaunKime Does SampleCurve work? I think I have a pretty basic setup:
Yet given changing values in CurveX, I always get CurveValues of 0.
The curve I’m using is already in the 0-1 range, so I’ve set bAllowUnnormalizedLUT to true to skip normalizing it again. I also use Curve.Eval instead of the LUT, because I know Curve.Eval is certainly working code. I can see it returning values on my breakpoint. Unless it’s evaluating for slate only. Hrm. I also tried turning on LUT and using curves beyond 1.
So I’m left scratching my head on how my setup is wrong.
And jumping down the UNiagaraDataInterfaceCurve rabbit hole was a fun journey. Clever stuff. Oh wait…shouldn’t the sim target be GPU?
LogNiagaraShaderCompiler: ERROR: GPU shader compile failed! Id 8
Okay that doesn’t help me. This does:
LogNiagaraShaderCompiler: Warning: /Engine/Generated/NiagaraEmitterInstance.usf(173,18-41): err0r X3004: undeclared identifier ‘Modulo’
Line 173 is the problem:
LogNiagaraShaderCompiler: 169 int Result4 = ExecIndex();
LogNiagaraShaderCompiler: 170 float Constant2 = 1;
LogNiagaraShaderCompiler: 171 float Result5 = Context.Map.Emitter.NumCopies + Constant2; LogNiagaraShaderCompiler: 172 float Result6 = Context.Map.Emitter.NumInstances / Result5; LogNiagaraShaderCompiler: 173 float Result7 = Modulo(Result4, Result6);
Shoud that be fmod? Anyway, I’ll keep poking at it. Any help appreciated. Cheers.