Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/UNiagaraDataChannelLibrary
References
| Module | Niagara |
| Header | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraDataChannel.h |
| Include | #include "NiagaraDataChannel.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraDataChannel.cpp |
UFUNCTION (BlueprintCallable, Category=NiagaraDataChannel,
DisplayName="Read From Niagara Data Channel (Batch)",
Meta=(AdvancedDisplay="SearchParams", Keywords="niagara DataChannel", WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static UNiagaraDataChannelReader * ReadFromNiagaraDataChannel
(
const UObject * WorldContextObject,
const UNiagaraDataChannelAsset * Channel,
FNiagaraDataChannelSearchParameters SearchParams,
bool bReadPreviousFrame
)
Remarks
Initializes and returns the Niagara Data Channel reader for the given data channel.
Parameters
| Name | Description |
|---|---|
| WorldContextObject | World to execute in |
| Channel | The channel to read from |
| SearchParams | Parameters used when retrieving a specific set of Data Channel Data to read or write like the islands data channel type. |
| bReadPreviousFrame | True if this reader will read the previous frame's data. If false, we read the current frame. Reading the current frame allows for zero latency reads, but any data elements that are generated after this reader is used are missed. Reading the previous frame's data introduces a frame of latency but ensures we never miss any data as we have access to the whole frame. |