unreal.NiagaraDataInterfaceGrid2DCollection
¶
- class unreal.NiagaraDataInterfaceGrid2DCollection(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
NiagaraDataInterfaceGrid2D
Niagara Data Interface Grid 2DCollection
C++ Source:
Plugin: Niagara
Module: Niagara
File: NiagaraDataInterfaceGrid2DCollection.h
Editor Properties: (see get_editor_property/set_editor_property)
clear_before_non_iteration_stage
(bool): [Read-Write] Option to clear the buffer prior to a stage where the iteration count does not match the grid resolution. Useful for stages where one wants to do sparse writes and accumulate values.num_attributes
(int32): [Read-Write] Number of Attributesnum_cells_max_axis
(int32): [Read-Write] Number of cells on the longest axisnum_cells_x
(int32): [Read-Write] Number of cells in Xnum_cells_y
(int32): [Read-Write] Number of cells in Yoverride_buffer_format
(NiagaraGpuBufferFormat): [Read-Write] When enabled overrides the format used to store data inside the grid, otherwise uses the project default setting. Lower bit depth formats will save memory and performance at the cost of precision.override_format
(bool): [Read-Write]preview_attribute
(Name): [Read-Write] When enabled allows you to preview the grid in a debug displaypreview_grid
(bool): [Read-Write]render_target_user_parameter
(NiagaraUserParameterBinding): [Read-Write] Reference to a user parameter if we’re reading one.set_grid_from_max_axis
(bool): [Read-Write] Set grid resolution according to longest axisworld_b_box_size
(Vector2D): [Read-Write] World size of the grid
- fill_raw_texture2d(component, dest) (tiles_x=int32, tiles_y=int32) or None ¶
Fill Raw Texture 2D deprecated: This function has been replaced by object user variables on the emitter to specify render targets to fill with data.
- Parameters:
component (NiagaraComponent) –
dest (TextureRenderTarget2D) –
- Returns:
tiles_x (int32):
tiles_y (int32):
- Return type:
tuple or None
- fill_texture2d(component, dest, attribute_index) bool ¶
Fills a texture render target 2d with the current data from the simulation #todo(dmp): this will eventually go away when we formalize how data makes it out of Niagara deprecated: This function has been replaced by object user variables on the emitter to specify render targets to fill with data.
- Parameters:
component (NiagaraComponent) –
dest (TextureRenderTarget2D) –
attribute_index (int32) –
- Return type:
- get_raw_texture_size(component) -> (size_x=int32, size_y=int32)¶
Get Raw Texture Size deprecated: This function has been replaced by object user variables on the emitter to specify render targets to fill with data.
- Parameters:
component (NiagaraComponent) –
- Returns:
size_x (int32):
size_y (int32):
- Return type:
tuple
- get_texture_size(component) -> (size_x=int32, size_y=int32)¶
Get Texture Size
- Parameters:
component (NiagaraComponent) –
- Returns:
size_x (int32):
size_y (int32):
- Return type:
tuple