unreal.NiagaraFunctionLibrary¶
- class unreal.NiagaraFunctionLibrary(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
BlueprintFunctionLibraryA C++ and Blueprint accessible library of utility functions for accessing Niagara simulations All positions & orientations are returned in Unreal reference frame & units, assuming the Leap device is located at the origin.
C++ Source:
Plugin: Niagara
Module: Niagara
File: NiagaraFunctionLibrary.h
- classmethod acquire_niagara_gpu_ray_traced_collision_group(world_context_object) int32¶
Returns a free collision group for use in HWRT collision group filtering. Returns -1 on failure.
- Parameters:
world_context_object (Object)
- Return type:
int32
- classmethod get_niagara_parameter_collection(world_context_object, collection) NiagaraParameterCollectionInstance¶
- This is gonna be totally reworked
UFUNCTION(BlueprintCallable, Category = Niagara, meta = (Keywords = “niagara System”, UnsafeDuringActorConstruction = “true”)) static void SetUpdateScriptConstant(UNiagaraComponent* Component, FName EmitterName, FName ConstantName, FVector Value);
- Parameters:
world_context_object (Object)
collection (NiagaraParameterCollection)
- Return type:
- classmethod override_system_user_variable_skeletal_mesh_component(niagara_system, override_name, skeletal_mesh_component) None¶
Sets a Niagara StaticMesh parameter by name, overriding locally if necessary.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
skeletal_mesh_component (SkeletalMeshComponent)
- classmethod override_system_user_variable_static_mesh(niagara_system, override_name, static_mesh) None¶
Override System User Variable Static Mesh
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
static_mesh (StaticMesh)
- classmethod override_system_user_variable_static_mesh_component(niagara_system, override_name, static_mesh_component) None¶
Sets a Niagara StaticMesh parameter by name, overriding locally if necessary.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
static_mesh_component (StaticMeshComponent)
- classmethod release_niagara_gpu_ray_traced_collision_group(world_context_object, collision_group) None¶
Releases a collision group back to the system for use by ohers.
- Parameters:
world_context_object (Object)
collision_group (int32)
- classmethod set_actor_niagara_gpu_ray_traced_collision_group(world_context_object, actor, collision_group) None¶
Sets the Niagara GPU ray traced collision group for all primitive components on the given actor.
- classmethod set_component_niagara_gpu_ray_traced_collision_group(world_context_object, primitive, collision_group) None¶
Sets the Niagara GPU ray traced collision group for the give primitive component.
- Parameters:
world_context_object (Object)
primitive (PrimitiveComponent)
collision_group (int32)
- classmethod set_scene_capture2d_data_interface_managed_mode(niagara_system, di_name, managed_capture_source, managed_texture_size, managed_texture_format, managed_projection_type, managed_fov_angle, managed_ortho_width, managed_capture_every_frame, managed_capture_on_movement, show_only_actors) None¶
Sets managed mode parameters for the Scene capture 2D data interface, this is destructive as it modifies the data interface.
- Parameters:
niagara_system (NiagaraComponent)
di_name (Name)
managed_capture_source (SceneCaptureSource)
managed_texture_size (IntPoint)
managed_texture_format (TextureRenderTargetFormat)
managed_projection_type (CameraProjectionMode)
managed_fov_angle (float)
managed_ortho_width (float)
managed_capture_every_frame (bool)
managed_capture_on_movement (bool)
- classmethod set_skeletal_mesh_data_interface_filtered_bones(niagara_system, override_name, filtered_bones) None¶
Sets the Filtered Bones to use on the skeletal mesh data interface, this is destructive as it modifies the data interface.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
- classmethod set_skeletal_mesh_data_interface_filtered_sockets(niagara_system, override_name, filtered_sockets) None¶
Sets the Filtered Sockets to use on the skeletal mesh data interface, this is destructive as it modifies the data interface.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
- classmethod set_skeletal_mesh_data_interface_sampling_regions(niagara_system, override_name, sampling_regions) None¶
Sets the SamplingRegion to use on the skeletal mesh data interface, this is destructive as it modifies the data interface.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
- classmethod set_texture2d_array_object(niagara_system, override_name, texture) None¶
Overrides the 2D Array Texture for a Niagara 2D Array Texture Data Interface User Parameter.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
texture (Texture2DArray)
- classmethod set_texture_object(niagara_system, override_name, texture) None¶
Overrides the Texture Object for a Niagara Texture Data Interface User Parameter.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
texture (Texture)
- classmethod set_volume_texture_object(niagara_system, override_name, texture) None¶
Overrides the Volume Texture for a Niagara Volume Texture Data Interface User Parameter.
- Parameters:
niagara_system (NiagaraComponent)
override_name (str)
texture (VolumeTexture)
- classmethod spawn_system_at_location(world_context_object, system_template, location, rotation=[0.000000, 0.000000, 0.000000], scale=[1.000000, 1.000000, 1.000000], auto_destroy=True, auto_activate=True, pooling_method=NCPoolMethod.NONE, pre_cull_check=True) NiagaraComponent¶
Spawns a Niagara System at the specified world location/rotation
- Parameters:
world_context_object (Object)
system_template (NiagaraSystem)
location (Vector)
rotation (Rotator)
scale (Vector)
auto_destroy (bool)
auto_activate (bool)
pooling_method (NCPoolMethod)
pre_cull_check (bool)
- Returns:
The spawned UNiagaraComponent
- Return type:
- classmethod spawn_system_at_location_with_params(spawn_params) NiagaraComponent¶
Spawn System at Location with Params
- Parameters:
spawn_params (FXSystemSpawnParameters)
- Return type:
- classmethod spawn_system_attached(system_template, attach_to_component, attach_point_name, location, rotation, location_type, auto_destroy, auto_activate=True, pooling_method=NCPoolMethod.NONE, pre_cull_check=True) NiagaraComponent¶
Spawn System Attached
- Parameters:
system_template (NiagaraSystem)
attach_to_component (SceneComponent)
attach_point_name (Name)
location (Vector)
rotation (Rotator)
location_type (AttachLocation)
auto_destroy (bool)
auto_activate (bool)
pooling_method (NCPoolMethod)
pre_cull_check (bool)
- Return type:
- classmethod spawn_system_attached_with_params(spawn_params) NiagaraComponent¶
Spawn System Attached with Params
- Parameters:
spawn_params (FXSystemSpawnParameters)
- Return type: