Hello all! why is that this code not working? On the identical time, in the event you take away “#if GPU_SIMULATION”, then the whole lot works. The emitter runs on the GPU, that’s, sim goal = GPUCompute Sim is ready within the property. Or is working with arrays in niagara out there solely on the CPU?
You can’t run for loop in both System or Emitter Spawn/Replace teams however Particle teams solely, no less than not in Customized HLSL.
- AFAIC, Emitter (System as nicely) Spawn and Replace teams are all the time operating on the CPU aspect even when the emitter is ready to GPUCompute Sim.
#if GPU_SIMULATIONis particularly for Particle teams solely.
Within the newest UE 5, Niagara script contains the brand new array parameter maps together with “for” loop node which doesn’t report error when utilized in System/Emitter teams, so chances are you’ll give it a shot. I don’t have time to strive it correctly but, although.
Thanks! By experiment, I discovered that the loop in hlsl within the emitter replace teams nonetheless works, however solely as much as 127 iterations, in the event you set extra, the engine crashes
I’m not positive if I offered you with sufficient assist, however one factor I’ve simply realized is that, even in UE 5.2, Get() remains to be not allowed in Customized HLSL in System/Emitter teams, whether or not it’s run in a for loop or not. However, the Parameter Map “Get” is completely useful in System/Emitter teams.