unreal.NiagaraFunctionLibrary
¶
- class unreal.NiagaraFunctionLibrary(outer=None, name='None')¶
Bases:
unreal.BlueprintFunctionLibrary
A 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_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() -> (NiagaraComponent, spawn_params=FXSystemSpawnParameters)¶
Spawn System at Location with Params
- Returns
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() -> (NiagaraComponent, spawn_params=FXSystemSpawnParameters)¶
Spawn System Attached with Params
- Returns
spawn_params (FXSystemSpawnParameters):
- Return type