Hello all! why is that this code not working? On the identical time, in the event you take away “#if GPU_SIMULATION”, then every thing 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 not run for loop in both System or Emitter Spawn/Replace teams however Particle teams solely, a minimum of not in Customized HLSL.
- AFAIC, Emitter (System as effectively) Spawn and Replace teams are at all times working on the CPU aspect even when the emitter is ready to GPUCompute Sim.
#if GPU_SIMULATION
is 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 attempt it correctly but, although.