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(search_params, read_prev_frame_data) bool ¶
Call before each access to the data channel to grab the correct data to read.
- Parameters:
search_params (NiagaraDataChannelSearchParameters) –
read_prev_frame_data (bool) –
- Return type:
- num() int32 ¶
Num
- Return type:
int32
- read_bool(var_name, index) bool or None ¶
Read Bool
- read_enum(var_name, index) -> (uint8, is_valid=bool)¶
Read Enum
- read_float(var_name, index) -> (double, is_valid=bool)¶
Read Float
- read_id(var_name, index) -> (NiagaraID, is_valid=bool)¶
Read ID
- read_int(var_name, index) -> (int32, is_valid=bool)¶
Read Int
- read_linear_color(var_name, index) -> (LinearColor, is_valid=bool)¶
Read Linear Color
- read_position(var_name, index) -> (Vector, is_valid=bool)¶
Read Position
- read_quat(var_name, index) -> (Quat, is_valid=bool)¶
Read Quat
- read_spawn_info(var_name, index) -> (NiagaraSpawnInfo, is_valid=bool)¶
Read Spawn Info
- read_vector(var_name, index) -> (Vector, is_valid=bool)¶
Read Vector
- read_vector2d(var_name, index) -> (Vector2D, is_valid=bool)¶
Read Vector 2D