Navigation
API > API/Plugins > API/Plugins/Niagara > API/Plugins/Niagara/UNiagaraDataChannelLibrary
Description
LEGACY FUNCTION: Please use non-legacy version. Reads a single entry from the given data channel, if possible.
| Name | ReadFromNiagaraDataChannelSingle |
| Type | function |
| Header File | /Engine/Plugins/FX/Niagara/Source/Niagara/Public/NiagaraDataChannelFunctionLibrary.h |
| Include Path | #include "NiagaraDataChannelFunctionLibrary.h" |
| Source | /Engine/Plugins/FX/Niagara/Source/Niagara/Private/NiagaraDataChannelFunctionLibrary.cpp |
UFUNCTION (BlueprintInternalUseOnly, Category=NiagaraDataChannel,
DisplayName="Read From Niagara Data Channel (Legacy)",
Meta=(bReadPreviousFrame="true", AdvancedDisplay="SearchParams, bReadPreviousFrame", ExpandEnumAsExecs="ReadResult", Keywords="niagara DataChannel", WorldContext="WorldContextObject", UnsafeDuringActorConstruction="true"))
static void ReadFromNiagaraDataChannelSingle
(
const UObject * WorldContextObject,
const UNiagaraDataChannelAsset * Channel,
int32 Index,
FNiagaraDataChannelSearchParameters SearchParams,
bool bReadPreviousFrame,
ENiagartaDataChannelReadResult & ReadResult
)
Parameters
| Name | Remarks |
|---|---|
| WorldContextObject | World to execute in |
| Channel | The channel to read from |
| Index | The data index 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. |
| ReadResult | Used by Blueprint for the return value |