unreal.NiagaraDataChannelReader
¶
- class unreal.NiagaraDataChannelReader(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
Initial simple API for reading and writing data in a data channel from game code / BP. Likely to be replaced in the near future with a custom BP node and a helper struct.
C++ Source:
Plugin: Niagara
Module: Niagara
File: NiagaraDataChannelAccessor.h
- init_access(owning_component) bool ¶
Call before each access to the data channel to grab the correct data to read.
- Parameters:
owning_component (ActorComponent) –
- Return type:
- num() int32 ¶
Num
- Return type:
int32
- read_float(var_name, index) double ¶
Read Float
- Parameters:
var_name (Name) –
index (int32) –
- Return type:
double
- read_int(var_name, index) int32 ¶
Read Int
- Parameters:
var_name (Name) –
index (int32) –
- Return type:
int32
- read_linear_color(var_name, index) LinearColor ¶
Read Linear Color
- Parameters:
var_name (Name) –
index (int32) –
- Return type: