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
Return type

NiagaraParameterCollectionInstance

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
classmethod override_system_user_variable_static_mesh(niagara_system, override_name, static_mesh) None

Override System User Variable Static Mesh

Parameters
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
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.

Parameters
  • world_context_object (Object) –

  • actor (Actor) –

  • collision_group (int32) –

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
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
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
classmethod set_texture_object(niagara_system, override_name, texture) None

Overrides the Texture Object for a Niagara Texture Data Interface User Parameter.

Parameters
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
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
Returns

The spawned UNiagaraComponent

Return type

NiagaraComponent

classmethod spawn_system_at_location_with_params() -> (NiagaraComponent, spawn_params=FXSystemSpawnParameters)

Spawn System at Location with Params

Returns

spawn_params (FXSystemSpawnParameters):

Return type

FXSystemSpawnParameters

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
Return type

NiagaraComponent

classmethod spawn_system_attached_with_params() -> (NiagaraComponent, spawn_params=FXSystemSpawnParameters)

Spawn System Attached with Params

Returns

spawn_params (FXSystemSpawnParameters):

Return type

FXSystemSpawnParameters