언리얼 나이아가라 스크래치 패드에서 CustomHLSL을 쓰던 중 이슈가 발생되었다.

문제상황은 FloatArray를 인식하지 않아서 에러가 나오는 상황이다.

나이아가라 HLSL에서는 In_, Out_ 키워딩으로 input과 output 값을 매핑해줄 수 있다.

다만 Float Array는 정상적으로 작동하지 않아서 따로 코드를 추가해서 작성해주었다.

 

https://forums.unrealengine.com/t/issues-with-niagara-scratch-pad-module-map-for-node-not-woking-with-cpusim-and-custom-hlsl-array-undeclared/764917

 

Issues with niagara scratch pad module : "map for" node not woking with CPUSim and "Custom HLSL" array undeclared

Hello, I have 2 issues with niagara scratch pad module. First : If if I set the emiter Sim Target to “CPUSim” the “map for” node in scrath pad modules doesn’t work, but if I set the emiter Sim Target to “GPUCompute Sim” it does. I have no err

forums.unrealengine.com

https://realtimevfx.com/t/reading-array-in-niagara-custom-hlsl/21213/3

 

Reading Array in Niagara Custom HLSL

Thanks. I got this to work, somehow. When I do this in a scratch pad and set the scratch module in a GPU emitter. However, when I am using it in a CPU emitter or making it a standalone module script asset, the compiler gives me the lvalue (???) error. I kn

realtimevfx.com

 

 

+ Recent posts