Tutorial: Niagara Data Channels 5.4 Update

A small update to Data Channel setup for 5.4

https://dev.epicgames.com/community/learning/tutorials/OpJ8/unreal-engine-niagara-data-channels-5-4-update

1 Like

Loved the update, thanks!
Is there any info on how to use Data Channel Writer?
I cant get it to work on GPU particles on Particle Update, but if I use it on System update it seems to work.
But for some reason i cant iterate over Particles Attribute reader data on System update in HLSL.

When following this tutorial in 5.4.4 I only got writing from blueprint to work with the following caveats:

  • Ensure in the NiagaraDataChannelAsset that you add your Niagara System of choice to the Systems Property
  • Ensure the SpawnConditional node in your scratchpad has an EmitterID assigned (0 seems to work OK)
  • Use Stat NiagaraDataChannels and fx.Niagara.DataChannels.LogWritesToOutputLog 2 to debug whether writing is working
  • When using WriteToNiagaraDataChannel nodes in BP, set the Channel input variable to your chose Niagara System and the NiagaraDataChannelAsset’s Channel Variables will automatically show up at the bottom of the node. When using WriteToNiagaraDataChannel (Batch), you will need to do a ForLoop according to your count and use the respective Write nodes targeting the NiagaraDataChannelWriter output

References: