Engine¶
50 tools for Niagara systems and emitters (modules, renderers, data interfaces, events, simulation stages, user parameters), and the engine's and the editor's status.
Back to the index.
add_niagara_data_interface¶
Additive
Add a new UNiagaraDataInterface user-parameter binding to a Niagara system, inside an undo transaction, request a recompile and save the system; success requires the save. A user parameter that already has this name and class is left as is (added false, already_exists true, nothing saved); one with this name and any other type is an error. The inverse is remove_niagara_data_interface.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the new user-parameter (no "User." prefix) |
data_interface_class |
string | yes | Data interface class name (e.g. "StaticMesh", "Texture"): a loaded data interface class with that name, else /Script/Niagara.NiagaraDataInterface<Name> |
Returns: { system_path: string, parameter_name: string, data_interface_class: string, data_interface_class_path?: string, offset?: int, added?: bool, already_exists?: bool, saved: bool, save_error?: string }
add_niagara_emitter_from_template¶
Additive
Add a copy of a template emitter to a Niagara system (canonical path). Loads the template/parent UNiagaraEmitter asset and adds a standalone copy of it to the system via FNiagaraEditorUtilities::AddEmitterToSystem — the same operation the Niagara editor's "Add Emitter" performs. This rebuilds the emitter's nodes and syncs the system overview graph, optionally names the new handle, then requests a compile and saves the system.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example") |
emitter_asset_path |
string | yes | Asset path of the source UNiagaraEmitter template (e.g. "/Niagara/DefaultAssets/Templates/Emitters/Fountain.Fountain") |
emitter_name |
string | no | Optional name for the new emitter handle; absent or empty keeps the name the engine generates from the source emitter. The engine sanitizes it and makes it unique among the system's emitters, so read emitter_handle_name for the stored name. |
Returns: { system_path: string, source_emitter_asset: string, emitter_handle_id: string, emitter_handle_name: string, is_valid: bool, is_enabled: bool, emitters_before: int, total_emitters: int, success: bool, saved: bool, save_error?: string }
add_niagara_event_handler¶
Additive Idempotent
Add an event handler to a Niagara emitter (the writer for event_handler_count). Constructs an FNiagaraEventScriptProperties (allocating its UNiagaraScript with usage ParticleEventScript, mirroring add_niagara_simulation_stage) and adds it via UNiagaraEmitter::AddEventHandler. Idempotent by source_event_name: if a handler for that event already exists it is returned (already_exists=true) without adding a duplicate. A spawn_number, max_events_per_frame or min_spawn_number that is not a JSON number is an error and nothing changes. The system is saved after modification. The handler's event-script graph is created in a default state -- full event wiring must be completed in the Niagara editor (reported honestly via note); the handler properties are persisted and re-readable.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example"). |
emitter_name |
string | yes | Display name of the emitter handle within the system. |
source_event_name |
string | yes | Name of the source event this handler consumes (its identity key for idempotency). |
execution_mode |
string | no | Optional EveryParticle | SpawnedParticles | SingleParticle (default EveryParticle). |
spawn_number |
integer | no | Optional int particles to spawn per event (SpawnedParticles mode). |
max_events_per_frame |
integer | no | Optional int cap on events consumed per frame. |
min_spawn_number |
integer | no | Optional int minimum spawn when random_spawn_number is set. |
random_spawn_number |
boolean | no | Optional bool: spawn a random count in [min_spawn_number, spawn_number]. |
source_emitter_id |
string | no | Optional GUID of the emitter handle that generates the event (default: this emitter). |
Returns: { system_path: string, emitter_name: string, usage_id: string, source_event_name: string, execution_mode: string, spawn_number: int, max_events_per_frame: int, already_exists: bool, event_handler_count: int, saved: bool, save_error?: string, note: string }
add_niagara_module_to_stack¶
Additive
Insert an engine module script into a Niagara emitter's particle stack. Loads the module UNiagaraScript and inserts it into the emitter's ParticleSpawn or ParticleUpdate stack via FNiagaraStackGraphUtilities::AddScriptModuleToStack, at the end or at a chosen target_index, then recompiles and saves. Not idempotent: every call adds another module node. NOTE: only the module's script-default inputs are applied — per-instance input overrides are out of scope (the response reports added_with_defaults=true). Stateless emitters (no editable graph) return a clean error.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle to modify. |
module_script_path |
string | yes | Asset path of the module UNiagaraScript (e.g. "/Niagara/Modules/Update/Forces/GravityForce.GravityForce") |
script_group |
string | no | Optional "spawn" (ParticleSpawnScript) or "update" (ParticleUpdateScript); defaults to "update" |
target_index |
integer | no | Optional 0-based position in the stack; -1 (INDEX_NONE, the default) and any index past the end append. A value that is not a JSON number is an error. |
Returns: { system_path: string, emitter_name: string, module_script_path: string, script_group: string, target_index: int, module_node_name: string, added_with_defaults: bool, success: bool, saved: bool, save_error?: string }
add_niagara_renderer¶
Additive
Add a new renderer (Sprite / Ribbon / Mesh / Light / Decal) to a Niagara emitter, optionally with its properties seeded in the same call. Creates a UNiagaraRendererProperties instance of the requested concrete class inside the emitter, as the Niagara editor does, optionally sets the Material UPROPERTY and the supplied properties (converted and clamped by reflection; enum keys fire PostEditChangeProperty), and appends it to the emitter's RendererProperties array, in one undo step. A Light is seeded with affects_translucency and alpha_scales_brightness true (the engine defaults are false), as the dedicated light-renderer tool seeded it; properties overrides either. Then requests a system compile and saves the asset. verified is true when the renderer is in the emitter's list and resolves that emitter; properties reads the stored values back. Each call adds one more renderer. An unknown renderer_type, a material_path that does not load as a material, an unknown key in properties, a numeric property given something other than a JSON number, or a value that does not convert is an error and nothing is created. A failed save makes success false, with saved=false and save_error, the renderer kept in memory.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example"). |
emitter_name |
string | yes | Name of the emitter handle (the human-readable name in the system's emitter list). |
renderer_type |
string | yes | One of "Sprite" / "Ribbon" / "Mesh" / "Light" / "Decal" (case-insensitive). |
material_path |
string | no | Optional asset path; sets the renderer's Material property (a class without one, such as Light, ignores it). If omitted, the renderer is added with a null material (still a valid empty renderer). |
properties |
object | no | Optional object of renderer properties to seed, e.g. {"radius_scale": 2, "use_inverse_squared_falloff": false, "color_add": {"X": 1, "Y": 0, "Z": 0}} for a Light (scales clamped at 0; affects_translucency and alpha_scales_brightness default to true) or {"decal_source_mode": "Emitter", "renderer_visibility": 1, "decal_screen_size_fade": 0.1} for a Decal. Keys the renderer class lacks are listed in not_applicable. |
Returns: { system_path: string, emitter_name: string, renderer_type: string, renderer_class: string, renderer_index: int, material_path: string, applied: [string], not_applicable: [string], post_edit_fired: bool, properties: object, renderer_count: int, verified: bool, saved: bool, save_error?: string }
add_niagara_simulation_stage¶
Additive
Add a generic simulation stage (UNiagaraSimulationStageGeneric) to one emitter of a Niagara System asset, found by handle name, in one undo step, then save the system. The stage gets stage_name as its SimulationStageName, iterates over Particles with execute behavior Always and dispatch type OneD, and runs iteration_count times in a row (default 1), read back in iteration_count; its graph starts in a default state, to be wired in the Niagara editor. An iteration_count that is not a JSON number from 0 to 65535 (the range the runtime honors; 0 skips the stage; a fraction is rounded), or an unknown system or emitter, is an error and nothing changes. A failed save makes success false, with saved=false and save_error, the stage kept in memory. Change its other settings with set_niagara_simulation_stage_properties; list stages with get_niagara_simulation_stages.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle. |
stage_name |
string | yes | Name for the new simulation stage. |
iteration_count |
integer | no | Optional number of times the stage runs in a row, from 0 to 65535 (rounded to a whole number); defaults to 1 |
Returns: { system_path: string, emitter_name: string, stage_name: string, requested_iteration_count: int, iteration_count: int, total_simulation_stages: int, success: bool, saved: bool, save_error?: string }
create_niagara_system¶
Additive Idempotent
Create an empty UNiagaraSystem asset at package_path/name and save it: its system spawn and update scripts are set up, but it has no emitters. Idempotent: a Niagara System already at that path is returned unchanged with created=false and already_exists=true, and nothing is saved; an asset of another class at that path is an error and nothing is written. Not an undo step. Next, add emitters with add_niagara_emitter_from_template, check the result with get_niagara_system_info or get_niagara_emitter_handles, and place it in a level with spawn_actor (type NiagaraActor). A failed save is an error, the new asset left in memory unsaved.
| Parameter | Type | Required | Description |
|---|---|---|---|
name |
string | yes | Asset name, e.g. 'NS_Sparks'; package_path/name must form a valid long package name. |
package_path |
string | no | Content folder as a long package path, e.g. '/Game/FX' (default /Game/Niagara); a trailing slash is ignored. |
Returns: { system_name: string, asset_path: string, created: bool, already_exists?: bool, saved?: bool, save_error?: string, emitter_count: int }
duplicate_niagara_emitter_handle¶
Additive
Duplicate an emitter handle of a Niagara System asset under a new name, keeping its enabled state, in one undo step, then save the system. The source is found by display name (case-insensitive); an unknown system or source is an error and nothing changes. The stored name can differ from the one asked for, so read new_emitter_name. Returns the actual name and id of the copy plus total_emitters; a failed save makes success false, with saved=false and save_error, the copy kept in memory. Find handle names with get_niagara_emitter_handles; add an emitter asset instead with add_niagara_emitter_from_template; rename the copy with rename_niagara_emitter_handle.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset path, e.g. "/Game/FX/NS_Fire"; the call fails without it. |
source_emitter_name |
string | yes | Display name of the emitter handle to copy (case-insensitive), as get_niagara_emitter_handles lists it. |
new_emitter_name |
string | no | Name for the copy (default "<source_emitter_name>_Copy"). |
Returns: { system_path: string, source_emitter_name: string, new_emitter_name: string, new_emitter_id: string, is_valid: bool, total_emitters: int, saved: bool, save_error?: string }
duplicate_niagara_module_in_stack¶
Additive
Add another instance of a module to one emitter of a Niagara System asset: the module named module_name (its function name, case-sensitive, as list_niagara_modules gives it) is found on the script_group stack only (spawn or update, any case, default update) and its script is added again to that stack through FNiagaraStackGraphUtilities::AddScriptModuleToStack, in one undo step, then a system compile is requested and the system saved. The new module starts with the default inputs of the script; the input overrides of the source are not copied. Positions are stack positions, as list_niagara_modules reports index: target_index_override sets it (clamped into the stack, -1 appends), else it goes right after the source. inserted_index is read back from the stack, and a module that did not land where asked fails the call. An unknown system, emitter, script_group or module (or a module only on the other stack) is an error and nothing changes; a failed save makes success false, with saved=false and save_error. Inputs: set_niagara_module_input; move: reorder_niagara_modules.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it. |
module_name |
string | yes | Function name of the module to duplicate, case-sensitive, as list_niagara_modules gives module_name for that stack, e.g. 'GravityForce'. |
script_group |
string | no | Optional "spawn" or "update" (any case), the stack the module is on; defaults to "update"; any other value is an error and nothing changes. |
target_index_override |
integer | no | Optional stack position for the new module, a JSON number (0 runs first; -1 appends; others are clamped into the stack); defaults to the source's stack index plus one. |
Returns: { system_path: string, emitter_name: string, script_group: string, source_module_name: string, source_index: int, new_module_name: string, inserted_index: int, module_count: int, duplicated: bool, saved: bool, save_error?: string }
get_editor_status¶
Read-only
Prove the Unreal editor is alive and TICKING: a no-argument game-thread liveness/health probe, and the first call to make when the MCP bridge goes quiet. It runs on the GAME THREAD via the bridge's command drain, so a reply proves the game thread is pumping -- unlike a transport-only ping, which a wedged editor still answers. After a "Connection reset" use it to tell an editor CRASH (this errors, the reconnect refuses) from a mere tool TIMEOUT (this returns alive=true); call it twice and diff frame_counter to rule out a deadlock, since a frozen game thread replies once but never advances the frame (frame_count_render_thread is the render thread's own counter). Also reports whether PIE is running (pie_active / is_simulating) and the open editor world, without starting or stopping anything. Read-only and cheap; safe to call any time.
No parameters.
Returns: { alive: bool, gis_running: bool, exit_requested: bool, is_editor: bool, frame_counter: number, frame_count_render_thread: number, pie_active: bool, is_simulating: bool, editor_world: string, world_context_count: int }
get_engine_info¶
Read-only
Read the GEngine object (engine_name, engine_class), the live UGameInstance (name, class, object path) and every world context with its world_name, world_type (Editor/PIE/Game/...) and has_game_instance flag. Use it to see how many worlds exist at once -- in co-op PIE the host and each client are SEPARATE world contexts, so this is how you confirm two PIE worlds are up before reading state that must be checked on both sides -- and which GameInstance class a running session picked. A UGameInstance only exists while PIE or a game world runs, so at rest game_instance_exists=false with empty strings is the normal answer, not an error. get_editor_status is the cheaper "is the editor alive" probe. Read-only.
No parameters.
Returns: { engine_name: string, engine_class: string, game_instance_exists: bool, game_instance_name: string, game_instance_class: string, game_instance_path: string, world_context_count: int, worlds: [{ world_name, world_type, has_game_instance }] }
get_niagara_component_matrix¶
Read-only
Reads a Matrix (FMatrix4f) override parameter back off a spawned Niagara component — the round-trip reader for set_niagara_component_variable. UNiagaraComponent exposes no GetNiagaraVariableMatrix, so this reads the value straight out of the component's OverrideParameters store (FNiagaraParameterStore) by looking up the Matrix4 FNiagaraVariable; the override is stored as FMatrix44f. Returns found:false with an empty matrix (never a faked identity) when the variable has no local override on the component.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_name |
string | yes | Owner actor identifier (internal name or editor label). |
variable_name |
string | yes | Niagara variable name to read. |
Returns: { actor_name: string, variable_name: string, variable_type: string, found: bool, matrix: [number x 16] }
get_niagara_data_interfaces¶
Read-only
List the data interfaces bound to a Niagara System's user parameters (the User.* parameters of a data interface type, such as a static mesh or texture DI), or only the one named parameter_name, without changing anything: per binding its user parameter, the DI object and class, and the name and property class of each UPROPERTY (Transient and DuplicateTransient ones skipped; names and types only, no values). This is the system-level list: for the DIs set on module inputs inside one emitter's stacks use get_niagara_emitter_data_interfaces, and for every user parameter, DI or not, get_niagara_system_info. Add a DI with add_niagara_data_interface, point it at an asset with set_niagara_data_interface_asset, set its other fields with set_niagara_data_interface_default. A parameter_name that is not a data interface user parameter of the system, or a system that does not load, is an error; a system with none is a success with count 0. parameter_name in the reply is the short name the other data interface tools take; index is the DI's slot in the system's exposed-parameter store.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset, package or object path, e.g. '/Game/FX/NS_Sparks' or '/Game/FX/NS_Sparks.NS_Sparks'. |
parameter_name |
string | no | Short name of one data interface user parameter, e.g. 'SourceMesh'; a leading "User." is dropped and case is ignored. Omit it to list every binding. |
Returns: { system_path: string, count: int, data_interfaces: [{ index, parameter_name, object_name, data_interface_class, data_interface_class_path, path_name, properties: [{ name, type }], property_count: int }] }
get_niagara_effect_type¶
Read-only
Read which Niagara Effect Type asset a Niagara System asset uses, plus that effect type's settings: update_frequency and cull_reaction (as enum value names), allows_culling (bAllowCullingForLocalPlayers), and the scalability limits of its first system and emitter scalability entries: max_distance and max_instances (system), cull_by_distance (max_distance above 0) and scale_spawn_count (emitter SpawnCountScale). A system with no effect type, or an effect type without those entries, is a success with the defaults: an empty effect_type_path, None for both enums, allows_culling false, max_distance 0, max_instances 0, cull_by_distance false and scale_spawn_count 1. Read-only; an unknown system path is an error. Assign one with set_properties; the system's own flags and fixed bounds: get_properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset path, e.g. "/Game/FX/NS_Fire" (the object path form also works). |
Returns: { system_path: string, effect_type_path: string, update_frequency: string, cull_reaction: string, allows_culling: bool, max_distance: number, max_instances: int, cull_by_distance: bool, scale_spawn_count: number }
get_niagara_emitter_data_interfaces¶
Read-only
List the data interfaces one emitter of a Niagara System asset uses in its stacks: every data-interface input set on a module (a curve, a color curve, a static mesh, a vector field...), each with its input name, data interface class and object path and the stack it feeds (script_usage: particle_spawn, particle_update, emitter_spawn, emitter_update, particle_event, simulation_stage, or unconnected). Read from the emitter graph, so nothing needs compiling; read-only, it changes nothing. Data interfaces used only inside a module's own script are not listed. The emitter's Emitter Dependencies setting comes back separately as emitter_dependencies (emitter_name, binding_mode Self or Other). For the system's user-parameter data interfaces use get_niagara_data_interfaces (add_niagara_data_interface adds one); list_niagara_modules lists the modules. An emitter with none gives empty lists; a missing system or emitter handle is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, package or object form, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it, e.g. 'Fountain'. |
Returns: { system_path: string, emitter_name: string, data_interface_count: int, data_interfaces: [{ name, class, data_interface_path, script_usage, script_usages: [string] }], emitter_dependency_count: int, emitter_dependencies: [{ emitter_name, binding_mode }], note?: string }
get_niagara_emitter_handles¶
Read-only
List every emitter handle of a Niagara System asset, or just one chosen by display name or 0-based index, with its display name, id GUID, id name, enabled and valid flags, version GUID and, when it has emitter data, its local-space and deprecated flags, plus emitter_count (all handles of the system). Read-only; the names feed the other emitter tools. A name or index that matches no handle, or an emitter_index that is not a JSON number, is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset path, e.g. "/Game/FX/NS_Fire"; the call fails without it. |
emitter_name |
string | no | Optional display name of one handle to return (case-insensitive); when non-empty it wins over emitter_index. |
emitter_index |
integer | no | Optional 0-based position in the emitter list of the system of one handle to return, used only when emitter_name is absent or empty. |
Returns: { system_path: string, emitter_count: int, emitter_handles: [{ index: int, name: string, id: string, id_name: string, is_enabled: bool, is_valid: bool, emitter_version: string, is_local_space?: bool, is_deprecated?: bool }] }
get_niagara_emitter_renderers¶
Read-only
List every renderer of one emitter in a Niagara System asset, in stack order, without changing anything: per renderer its 0-based index, class (Sprite, Mesh, Ribbon, Light, Decal...), object name and material path, its object_path (which set_properties writes), the authored fields (bIsEnabled, SortOrderHint, MotionVectorSetting, bAllowInCullProxies plus the Sprite, Mesh, Light or Decal fields the class has) and, for a Mesh renderer, its static-mesh slots. Use it to find the renderer_index the renderer tools take; for every property of one renderer use get_niagara_renderer_info. Change a renderer with set_properties on its object_path, set_niagara_renderer_material or set_niagara_mesh_renderer_mesh, add one with add_niagara_renderer, take one out with remove_niagara_renderer. An unknown system or emitter name is an error; an emitter with no renderers is a success with renderer_count 0.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset, package or object path, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle in that system, case ignored, e.g. 'Sparks', as get_niagara_emitter_handles lists it. |
Returns: { system_path: string, emitter_name: string, renderer_count: int, renderers: [{ index, class, display_name, object_path, material_path, properties:{...}, meshes?:[{ slot, mesh_path }] }] }
get_niagara_emitter_runtime_summary¶
Read-only
Read one emitter of a Niagara System asset in a single flat reply: simulation target (CPUSim or GPUComputeSim), bounds mode (Dynamic, Fixed or Programmable) and its fixed box as 'X=.. Y=.. Z=..' strings, particle allocation mode and pre-allocation count, GPU spawn cap per frame (max_gpu_particles), local-space, determinism and persistent-ID flags, how many renderers, event handlers and simulation stages it has, and how many modules each stack holds. Read-only: it changes nothing and compiles nothing. Module counts are per stack, read from the chain that ends at each stack's output node: spawn_module_count and update_module_count for particle spawn and update, emitter_spawn_module_count and emitter_update_module_count, event_module_count over all event handlers and simulation_stage_module_count over all stages; dynamic inputs are not counted, disabled modules are, and graph_function_call_count counts every function-call node of the emitter graph. list_niagara_modules lists modules by name. A missing system or emitter handle is an error. Change these settings with set_niagara_emitter_properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, package or object form, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it, e.g. 'Fountain'. |
Returns: { system_path: string, emitter_name: string, sim_target: string, bounds_mode: string, bounds_min: string, bounds_max: string, allocation_mode: string, pre_allocation_count: int, max_gpu_particles: int, local_space: bool, deterministic: bool, requires_persistent_ids: bool, update_module_count: int, spawn_module_count: int, emitter_spawn_module_count: int, emitter_update_module_count: int, event_module_count: int, simulation_stage_module_count: int, graph_function_call_count: int, renderer_count: int, event_handler_count: int, simulation_stage_count: int, note?: string }
get_niagara_event_handlers¶
Read-only
List the event handlers of one emitter in a Niagara System asset (FVersionedNiagaraEmitterData::GetEventHandlers), without changing anything: per handler its usage_id, the source event name and source emitter id it listens to, its execution mode, spawn and event-per-frame limits, and whether it has its event script. Pass usage_id to remove_niagara_event_handler to take one out; add one with add_niagara_event_handler. For the emitter's renderers use get_niagara_emitter_renderers, for its simulation stages get_niagara_simulation_stages. An unknown system or emitter name is an error; an emitter with no handlers is a success with event_handler_count 0.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset, package or object path, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle in that system, case ignored, e.g. 'Sparks', as get_niagara_emitter_handles lists it. |
Returns: { system_path: string, emitter_name: string, event_handler_count: int, event_handlers: [{usage_id, source_event_name, execution_mode, spawn_number, max_events_per_frame, min_spawn_number, random_spawn_number, source_emitter_id, has_script}] }
get_niagara_module_input¶
Read-only
Read a Niagara module input override from the rapid-iteration store. Locates the module function-call node and the named input, reports the input's real type, and reads back any rapid-iteration override currently set for it. found=false means no override exists yet (the module is using its script default); in that case 'value' is omitted.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle. |
module_node_name |
string | yes | The module function-call node name. |
input_name |
string | yes | Leaf name of the module input (e.g. "Drag"). |
Returns: { system_path: string, emitter_name: string, module_node_name: string, input_name: string, ri_param_name: string, value_type: string, found: bool, value?: number | [number, number, number] | [number, number, number, number], success: bool }
get_niagara_renderer_info¶
Read-only
Dump the full property set of a specific renderer instance owned by a system emitter. Resolves the system via path, the emitter via name (or handle_index), and the renderer via index — then runs FJsonObjectConverter::UStructToJsonObject on the renderer to produce a flat property map. get_niagara_emitter_renderers lists every renderer; this cmd returns the full UPROPERTY surface of one renderer.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path to the UNiagaraSystem asset. |
emitter_name |
string | yes | Name of the emitter handle (preferred) or its FName. |
renderer_index |
integer | yes | 0-based index into FVersionedNiagaraEmitterData::RendererProperties. |
handle_index |
integer | no | Optional fallback when multiple emitters share a name (0-based). |
Returns: { system_path, emitter_name, renderer_index, renderer_class, renderer_class_path, properties: {...} }
get_niagara_simulation_stages¶
Read-only
Read the simulation stages of a Niagara emitter (read-only): every stage of FVersionedNiagaraEmitterData::GetSimulationStages(), or, with the OPTIONAL stage_index (preferred) or stage_name, just the matching stage. Each entry reports index, stage_name, class, enabled, and (for UNiagaraSimulationStageGeneric) iteration_source. Honest-empty when the emitter has no stages or the filter matches nothing.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle. |
stage_index |
integer | no | Optional 0-based index of a single stage to return. |
stage_name |
string | no | Optional SimulationStageName to match if stage_index is not supplied. |
Returns: { system_path: string, emitter_name: string, simulation_stage_count: int, total_simulation_stages: int, simulation_stages: [{ index, stage_name, class, enabled, object_path, iteration_source? }] }
get_niagara_system_info¶
Read-only
Reads metadata for a UNiagaraSystem: emitter count, exposed user parameters, and its warmup and determinism settings (warmup_time in seconds, warmup_tick_count, warmup_tick_delta, needs_warmup, deterministic). Read-only; change the warmup with set_properties, determinism with set_properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System (e.g. /Game/Niagara/NS_Example or /Game/Niagara/NS_Example.NS_Example) |
Returns: { system_name: string, system_path: string, emitter_count: int, num_user_parameters: int, warmup_time: number, warmup_tick_count: int, warmup_tick_delta: number, needs_warmup: bool, deterministic: bool, user_parameters: [{ name, type }] }
get_niagara_user_parameter¶
Read-only
Read a user-exposed parameter's current value from a Niagara System's exposed store. Resolves the parameter by short name (no "User." prefix) and the supplied type token, reads the POD value back. Round-trip companion to set_niagara_user_parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | User parameter name (without the "User." prefix). |
type |
string | no | Type token: Float|Vector|Vec2|Vec4|Color|Bool|Int (case-insensitive); defaults to Float. Vec3, Vector2, Vector4, LinearColor, Boolean, Int32 and Integer are accepted too. |
Returns: { system_path: string, parameter_name: string, parameter_type: string, found: bool, value_read_back?: number|bool|[number...] }
list_niagara_data_interface_classes¶
Read-only
Enumerate every concrete UNiagaraDataInterface subclass registered in this process via TObjectIterator. Skips Abstract (those are base classes only). Used to discover what data-interface class strings are valid for add_niagara_data_interface. The classes come sorted by class_path, a page at a time (offset/limit).
| Parameter | Type | Required | Description |
|---|---|---|---|
offset |
integer | no | Index of the first entry returned, counted from 0 (default 0). Read the next page at the reply's next_offset. |
limit |
integer | no | Most entries returned per call, 1..1000 (default 100). |
Returns: { count: int (entries in this page), classes: [{class_name, class_path, display_name, abstract, class_flags}], total: int, offset: int, limit: int, returned: int, truncated: bool, next_offset: int|null }
list_niagara_modules¶
Read-only
List the modules of one stack, or both stacks, of a Niagara emitter in execution order (read-only), optionally just the module with a given name. script_group picks the particle spawn or update stack (default "update"; "all" reads both and also groups them as spawn[] and update[]); a stack's modules are the function-call nodes on its parameter-map chain from its input to its output node, so the other stack's modules and the dynamic inputs feeding module inputs are not listed, while disabled modules are. Each entry: index (its position in its stack, 0 runs first, the index reorder_niagara_modules and add_niagara_module_to_stack take), module_name (GetFunctionName), node_guid, function_script(+class), is_enabled (IsNodeEnabled), is_deprecated, input/output pin counts. Honest-empty modules:[] when the stack has no modules or the graph is not resolvable (a note is returned); a module_name that matches no module is an error.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle. |
script_group |
string | no | Optional "spawn", "update" or "all" (both stacks); defaults to "update". |
module_name |
string | no | Optional module name (GetFunctionName, case-sensitive): return only that module; an error when no module of the stack(s) has it. |
Returns: { system_path: string, emitter_name: string, script_group: string, module_count: int, total_modules_in_stack: int, modules: [{ index, script_group, module_name, node_guid, function_script?, function_script_class?, is_enabled, is_deprecated, input_pin_count, output_pin_count, total_modules_in_stack }], note?: string, spawn?: [{...}], update?: [{...}], spawn_module_count?: int, update_module_count?: int, spawn_note?: string, update_note?: string }
list_niagara_renderer_classes¶
Read-only
Enumerate every concrete UNiagaraRendererProperties subclass registered in this process via TObjectIterator. Skips Abstract (those are base classes only). Used to discover what renderer_class strings are valid for add_niagara_renderer.
No parameters.
Returns: { count: int, classes: [{class_name, class_path, display_name, abstract, class_flags}] }
move_niagara_simulation_stage¶
Destructive Idempotent
Move one simulation stage of an emitter of a Niagara System asset to target_index, its 0-based place in the stage list, in one undo step, then request a system compile and save. The stage is found by stage_index (preferred) or stage_name (its SimulationStageName, case-insensitive); one is required. A stage that is not found, a target_index missing or outside the current list, a stage_index or target_index that is not a JSON number, or an unknown system or emitter is an error and nothing changes. Idempotent: a stage already at target_index is a success with moved=false, already_at_target=true and saved=false, nothing written. A failed save makes success false, with saved=false and save_error. List stages with get_niagara_simulation_stages; take one out with remove_niagara_simulation_stage.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle owning the stage. |
target_index |
integer | yes | Required 0-based target index the stage should occupy after the move, a JSON number in [0, total_simulation_stages). |
stage_index |
integer | no | Optional 0-based index into the emitter's simulation stages, a JSON number; takes precedence over stage_name when both are supplied. |
stage_name |
string | no | Optional SimulationStageName to match if stage_index is not supplied. |
Returns: { system_path, emitter_name, stage_index, stage_name, stage_class, target_index, moved, already_at_target, before_index, after_index, total_simulation_stages, saved, save_error? }
remove_niagara_data_interface¶
Destructive
Remove a UNiagaraDataInterface user-parameter binding from a Niagara system by name, inside an undo transaction, request a recompile and save the system; success requires the save. A name with no user parameter, or a user parameter that is not a data interface, is an error and nothing is changed.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the user-parameter to remove (no "User." prefix) |
Returns: { system_path: string, parameter_name: string, data_interface_class: string, removed: bool, saved: bool, save_error?: string }
remove_niagara_emitter_handle¶
Destructive
Remove one emitter handle from a Niagara System asset in one undo step, then save the system. The handle is chosen by display name (case-insensitive) or, when emitter_name is absent or empty, by 0-based emitter_index. An unknown system, name or index, or an emitter_index that is not a JSON number, is an error and nothing changes. A failed save makes success false, with saved=false and save_error, the removal kept in memory. Returns the removed name and id and the emitter counts before and after. List handles with get_niagara_emitter_handles; to keep an emitter but stop it, use set_niagara_emitter_properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | no | Optional display name of the emitter handle to remove |
emitter_index |
integer | no | Optional zero-based index; used if emitter_name not provided |
Returns: { system_path: string, removed_emitter_name: string, removed_emitter_id: string, emitters_before: int, emitters_after: int, removed: bool, saved: bool, save_error?: string }
remove_niagara_event_handler¶
Destructive Idempotent
Remove an event handler from a Niagara emitter by its usage_id. Calls UNiagaraEmitter::RemoveEventHandlerByUsageId. Idempotent: if no handler with that usage_id exists it reports already_removed without error. The system is saved after a removal.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle within the system. |
usage_id |
string | yes | The handler's usage_id (as returned by add_niagara_event_handler / get_niagara_event_handlers). |
Returns: { system_path: string, emitter_name: string, usage_id: string, already_removed: bool, removed: bool, event_handler_count: int, saved: bool, save_error?: string }
remove_niagara_module_from_stack¶
Destructive
Remove one module from a Niagara emitter's particle spawn or update stack, in one undo step: the module and every node that feeds it (its input overrides, dynamic inputs and data-interface inputs) are taken out and the stack's chain is closed over the gap, then a system compile is requested and the system saved. The module is found by function name (case-sensitive) on the script_group stack only, the first one in execution order, as list_niagara_modules lists it. The result is read back: removed is true when the module is off the stack and the stack is one module shorter, chain_intact when the stack still runs from its input to its output node; either false fails the call. An unknown system, emitter, script_group or module (or a module only on the other stack) is an error and nothing changes; a failed save makes success false, with saved=false and save_error. The inverse is add_niagara_module_to_stack.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it. |
module_name |
string | yes | Function name of the module to remove, case-sensitive, as list_niagara_modules gives module_name for that stack, e.g. 'GravityForce'. |
script_group |
string | no | Optional "spawn" or "update" (any case), the stack the module is on; defaults to "update"; any other value is an error and nothing changes. |
Returns: { system_path: string, emitter_name: string, script_group: string, module_name: string, removed_index: int, removed_node_count: int, module_count: int, chain_intact: bool, removed: bool, saved: bool, save_error?: string }
remove_niagara_renderer¶
Destructive
Take the renderer at renderer_index (0-based, in get_niagara_emitter_renderers order) out of one emitter of a Niagara System asset, in one undo step, then request a system compile and save. renderer_index is required and must be a JSON number of 0 or more; an index out of range, an empty renderer slot, or an unknown system or emitter is an error and nothing changes. The renderers after it move down one index. A failed save makes success false, with saved=false and save_error, the removal kept in memory. Returns the class of the renderer taken out and the count left. Add one with add_niagara_renderer; change one with set_properties on its object_path from get_niagara_emitter_renderers.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle. |
renderer_index |
integer | yes | 0-based index into the emitter's renderers list, a JSON number (use get_niagara_emitter_renderers to find the index) |
Returns: { system_path: string, emitter_name: string, removed_renderer_index: int, removed_renderer_class: string, renderer_count_after: int, saved: bool, save_error?: string }
remove_niagara_simulation_stage¶
Destructive Idempotent
Remove one simulation stage from an emitter of a Niagara System asset, found by stage_index (0-based, preferred) or stage_name (its SimulationStageName, case-insensitive), in one undo step, then request a system compile and save. One of the two is required, and a stage_index that is not a JSON number is an error. Idempotent: a stage that is not found (an index out of range falls back to stage_name) is a success with removed=false, already_removed=true and saved=false, nothing written. An unknown system or emitter is an error. A failed save makes success false, with saved=false and save_error, the removal kept in memory. List stages with get_niagara_simulation_stages; reorder them with move_niagara_simulation_stage; add one with add_niagara_simulation_stage.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Display name of the emitter handle owning the stage. |
stage_index |
integer | no | Optional 0-based index into the emitter's simulation stages, a JSON number; takes precedence over stage_name when both are supplied. |
stage_name |
string | no | Optional SimulationStageName to match if stage_index is not supplied (matches add_niagara_simulation_stage's name). |
Returns: { system_path, emitter_name, stage_index, stage_name, stage_class, removed, already_removed, total_simulation_stages, saved, save_error? }
remove_niagara_user_parameter¶
Destructive
Remove one plain user parameter (the User. namespace: a float, int, bool, vector, color...) from a Niagara System asset, in one undo step; the asset is marked dirty, not saved, as set_niagara_user_parameter leaves it (save_asset keeps it). Inverse of set_niagara_user_parameter, which adds the parameter when it is missing. A data interface user parameter is refused (remove_niagara_data_interface removes those), and so is a name the system has no user parameter for, with nothing changed. The reply re-reads the store (still_present). Read: get_niagara_user_parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | User parameter name (without the "User." prefix). |
Returns: { system_path: string, parameter_name: string, parameter_type: string, removed: bool, still_present: bool }
rename_niagara_emitter_handle¶
Destructive
Rename an emitter handle of a Niagara System asset in one undo step, then save the system. The engine sanitizes the name and makes it unique among the emitters of the system, so read new_name and verified (false when the stored name differs from the request). A name the engine takes as the current one (the same after sanitizing, case-sensitive, ignoring a trailing number) is a success with renamed=false and saved=false, and nothing is written. An unknown system or current_name is an error. A failed save makes success false, with saved=false and save_error. List names with get_niagara_emitter_handles; copy a handle under a new name with duplicate_niagara_emitter_handle.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset path, e.g. "/Game/FX/NS_Fire"; the call fails without it. |
current_name |
string | yes | Current display name of the emitter handle (case-insensitive), as get_niagara_emitter_handles lists it. |
new_name |
string | yes | Requested display name; it may come back sanitized or with a numeric suffix. |
Returns: { system_path: string, old_name: string, new_name: string, verified: bool, renamed: bool, saved: bool, save_error?: string, note?: string }
reorder_niagara_modules¶
Destructive
Move one module of a Niagara emitter's particle spawn or update stack to another position in that same stack, changing its execution order: the module, with its input overrides and linked inputs, is taken out of the stack's parameter-map chain and put back at target_index, in one undo step, then a system compile is requested and the system saved. The module is found by function name (case-sensitive) on the script_group stack only; positions count that stack's modules in execution order, exactly as list_niagara_modules reports index. target_index past the last is clamped to it. new_index is read back from the rewired chain. A module already at that position changes nothing: reordered false, saved false and a note. An unknown system, emitter, script_group or module (or a module only on the other stack) is an error and nothing changes; a failed save makes success false, with saved=false and save_error. Insert a new module at a position: add_niagara_module_to_stack with target_index.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it. |
module_name |
string | yes | Function name of the module to move, case-sensitive, as list_niagara_modules gives module_name for that stack, e.g. 'GravityForce'. |
target_index |
integer | yes | New position in the stack, a JSON number of 0 or more (0 runs first), counted as list_niagara_modules counts index; clamped to the last; the call fails without it. |
script_group |
string | no | Optional "spawn" or "update" (any case), the stack the module is on; defaults to "update"; any other value is an error. |
Returns: { system_path: string, emitter_name: string, script_group: string, module_name: string, old_index: int, new_index: int, target_index: int, module_count: int, reordered: bool, saved: bool, save_error?: string, note?: string }
set_niagara_component_fixed_bounds¶
Destructive Idempotent
Set the fixed-bounds override of the Niagara component on a placed actor in the editor world (the first UNiagaraComponent of the actor found by internal name or label) to the local-space box min..max, then read it back. The override is runtime state of that component (UNiagaraComponent::SetSystemFixedBounds): the engine stores it in a member that is not a saved property, in 5.7 and 5.8 alike, and a component has no fixed-bounds field in its details panel, so it is lost when the level reloads and is not carried into PIE; it makes no undo step and does not dirty the level. Repeating the call with the same box gives the same result. An actor that is missing or has no Niagara component is an error and nothing changes. For bounds that persist, write the System asset's Fixed Bounds (bFixedBounds and FixedBounds, with set_properties) or an emitter's with set_niagara_emitter_properties (bounds_mode Fixed); place a Niagara actor with spawn_actor (type NiagaraActor).
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_name |
string | yes | Internal name or editor label of an actor in the editor world that has a Niagara component, as get_actors_in_level lists it, e.g. 'NiagaraActor_0'. |
min |
array | no | Box minimum corner in the component's local space, [x, y, z] in centimetres, e.g. [-500, -500, 0]; a missing or short array reads as [0, 0, 0], and it is not checked against max. |
max |
array | no | Box maximum corner in the component's local space, [x, y, z] in centimetres, e.g. [500, 500, 800]; a missing or short array reads as [0, 0, 0]. |
Returns: { actor_name: string, applied: bool, bounds_valid: bool, min_read_back: [number, number, number], max_read_back: [number, number, number] }
set_niagara_component_variable¶
Destructive Idempotent
Set a user parameter (variable override) on the Niagara component of an editor-world actor, found by internal name or label, the first UNiagaraComponent on it used: type says what value holds -- float, int, bool, vec2, vector, vec4, position, color, quat, matrix or object -- and the component's own SetVariable<Type> runs, then the value is read back. The override is added locally when the component has none for that name. One undo step; nothing is saved (save_level for a placed actor). The fixed bounds of the component are set_niagara_component_fixed_bounds; a parameter's default in the system asset is set_niagara_user_parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
actor_name |
string | yes | The actor carrying the Niagara component (internal name or editor label) |
variable_name |
string | yes | The user parameter, e.g. "User.SpawnRate" or "SpawnRate" |
type |
string | yes | One of float, int, bool, vec2, vector, vec4, position, color, quat, matrix, object |
value |
any | no | The value: a number (float, int), a bool, an array of 2/3/4 numbers (vec2, vector and position, vec4, color as [R, G, B] or [R, G, B, A]), [x, y, z, w] (quat), 16 numbers in row-major order (matrix), or an asset path (object) |
Returns: { the setter's reply: actor_name, variable_name, the value read back }
set_niagara_data_interface_array¶
Destructive Idempotent
Replace the contents of a numeric array on an array user-parameter data interface of a Niagara System asset (FloatData by default, IntData on the int32 array DI) with values, in an undo transaction that records the DI, then request a recompile and save the system; success requires the save. Every value must be a finite JSON number; an int array stores it truncated toward zero. A value of another type, an unknown system or data interface, an array_property the DI lacks, or an array of structs (Vector, Color, Position) is an error and nothing changes. There is no no-op check: the same values are written and saved again. The reply reads the stored array back. The DI must exist (add_niagara_data_interface); curve DIs: set_niagara_data_interface_curve; inspect it with get_niagara_data_interfaces.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the user-parameter array DI (no "User." prefix) |
values |
array | yes | Array of finite JSON numbers to store (replaces all existing array contents); any other element is an error |
array_property |
string | no | Optional array UPROPERTY to set (default "FloatData"; e.g. "IntData" for the int32 array DI) |
Returns: { system_path: string, parameter_name: string, array_property: string, element_type: string, count: int, values: [number], set: bool, saved: bool, save_error?: string }
set_niagara_data_interface_asset¶
Destructive Idempotent
Points an object property of a user-parameter data interface on a Niagara system at an asset (e.g. the mesh of a StaticMesh DI, the texture of a Texture DI), inside an undo transaction, reads it back, requests a system recompile and saves the system; success requires the read-back and the save. The DI must already exist (add_niagara_data_interface); property_name picks the property, else the first hard object property in reflection order. The asset must load and be of the property's class, else it is an error and nothing is written. For non-asset fields use set_niagara_data_interface_default.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the user-parameter DI to mutate |
asset_path |
string | no | Asset path of the UObject to assign (must be the right subclass) |
property_name |
string | no | Optional FObjectProperty name on the DI; defaults to the first FObjectProperty |
Returns: { system_path: string, parameter_name: string, property_name: string, asset_path: string, set: bool (the property reads back the asset), saved: bool, save_error?: string }
set_niagara_data_interface_curve¶
Destructive Idempotent
Replaces all keys of one FRichCurve property on a curve user-parameter data interface of a Niagara system with the given time/value keys (an empty array clears it), rebuilds the DI's lookup table, requests a recompile and saves the system, inside an undo transaction that records the DI; success requires the save. The DI must already exist (add_niagara_data_interface) and curve_property must name an FRichCurve on it: Curve by default, XCurve/YCurve/ZCurve (WCurve too on Vector4) on vector curve DIs, RedCurve/GreenCurve/BlueCurve/AlphaCurve on color curve DIs. Every key must be an object whose time and value are finite JSON numbers, or it is an error and nothing changes. For array DIs use set_niagara_data_interface_array.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the user-parameter curve DI (no "User." prefix) |
keys |
array | yes | Array of { time: number, value: number } keys to set (replaces all existing keys on the channel) |
curve_property |
string | no | Optional FRichCurve UPROPERTY to author (default "Curve"; e.g. "RedCurve"/"XCurve" on Color/Vector curve DIs) |
Returns: { system_path: string, parameter_name: string, curve_property: string, key_count: int, keys: [{time,value}], set: bool, saved: bool, save_error?: string }
set_niagara_data_interface_default¶
Destructive Idempotent
Writes one property of a user-parameter data interface on a Niagara system from text parsed by the property's ImportText, so any type it accepts works ("1.5", "(X=1,Y=2,Z=3)", "(R=1,G=0,B=0,A=1)", an enum name), inside an undo transaction, then requests a system recompile and saves the system; success requires the save. A missing DI or property, or text that does not parse, is an error and the DI is left untouched. value echoes the request; value_read_back is the stored value exported as text. List the DI's properties with get_niagara_data_interfaces; for asset references use set_niagara_data_interface_asset.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | Short name of the user-parameter DI to mutate |
property_name |
string | yes | Name of the FProperty on the DI to set |
value |
string | yes | String representation of the value (parsed by FProperty::ImportText_Direct) |
Returns: { system_path: string, parameter_name: string, property_name: string, value: string, value_read_back: string, set: bool, saved: bool, save_error?: string }
set_niagara_emitter_properties¶
Destructive Idempotent
Change any settings of ONE emitter of a Niagara System asset, found by handle name, in one call: enabled, simulation target (CPU or GPU), local space, determinism, bounds mode and fixed box, particle allocation mode and pre-allocation count, GPU particle cap and persistent IDs. Pass only the settings to change; each is validated and applied by its own step, in the order listed here, the system recompiled where the setting needs it and saved, and the call stops at the first setting refused, with applied listing those already changed. System-level settings (warmup, effect type, determinism of the system) are properties of the system asset: set_properties with save=true. get_niagara_emitter_info reads an emitter back.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Niagara System asset path, e.g. "/Game/FX/NS_Fire" |
emitter_name |
string | yes | Emitter handle name as shown in the system (case-insensitive) |
enabled |
boolean | no | Optional: enable or disable the emitter handle |
sim_target |
string | no | Optional: "CPUSim" or "GPUComputeSim" |
local_space |
boolean | no | Optional: simulate particles in the emitter's local space (true) or world space (false) |
deterministic |
boolean | no | Optional: the emitter's determinism flag |
bounds_mode |
string | no | Optional: "Dynamic", "Fixed" or "Programmable" |
bounds_min |
string | no | Optional fixed-bounds minimum corner as an FVector string, e.g. "X=-50 Y=-50 Z=0" |
bounds_max |
string | no | Optional fixed-bounds maximum corner as an FVector string, e.g. "X=50 Y=50 Z=100" |
allocation_mode |
string | no | Optional: "AutomaticEstimate", "ManualEstimate" or "FixedCount" |
pre_allocation_count |
integer | no | Optional particle count to allocate up front; needs allocation_mode |
max_gpu_particles |
integer | no | Optional cap on GPU particles (0 = no cap) |
requires_persistent_ids |
boolean | no | Optional: whether particles carry persistent IDs |
Returns: { system_path: string, emitter_name: string, applied: { setting: that setting's reply }, failed?: { label, command, error } (when a setting is refused) }
set_niagara_mesh_renderer_mesh¶
Destructive Idempotent
Assign a static mesh into a Niagara Mesh renderer's Meshes[] slot. Resolves (or grows the array to) the slot index, loads the UStaticMesh, and sets the slot's inner .Mesh via reflection on the FNiagaraMeshRendererMeshProperties element. Then requests a system compile and saves; a failed save makes success false, with saved=false and save_error. add_niagara_renderer type=Mesh leaves Meshes empty (renders nothing); this is the command that makes a Mesh renderer actually draw. A renderer_index or slot that is not a JSON number is an error and nothing changes. Idempotent: re-assigning the same mesh to the same slot does not grow the array, writes nothing and saves nothing (already_assigned=true, saved=false).
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle. |
renderer_index |
integer | yes | 0-based index of the Mesh renderer (use get_niagara_emitter_renderers). |
mesh_path |
string | yes | Asset path of the UStaticMesh to assign (e.g. "/Engine/BasicShapes/Cube"). |
slot |
integer | no | Optional 0-based slot index into Meshes[] (default 0). The array is grown with default elements up to this index if needed. |
Returns: { system_path, emitter_name, renderer_index, renderer_class, slot, mesh_path, mesh_count, already_assigned: bool, saved: bool, save_error? }
set_niagara_module_enabled¶
Destructive Idempotent
Enable or disable one module of a Niagara emitter's particle spawn or update stack (FNiagaraStackGraphUtilities::SetModuleIsEnabled), in one undo step, then request a system compile and save the system; a disabled module stays on the stack but does not run. The module is found by function name (case-sensitive) on the script_group stack only, the first one in execution order. previous_enabled and enabled are read from the node before and after; an enabled state that did not take fails the call. A module already in that state changes nothing: changed false, saved false and a note. An unknown system, emitter, script_group or module (or a module only on the other stack) is an error and nothing changes; a failed save makes success false, with saved=false and save_error. list_niagara_modules shows each module's is_enabled.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Content path of the UNiagaraSystem asset, e.g. '/Game/FX/NS_Sparks'. |
emitter_name |
string | yes | Display name of the emitter handle, as get_niagara_emitter_handles lists it. |
module_name |
string | yes | Function name of the module to toggle, case-sensitive, as list_niagara_modules gives module_name for that stack, e.g. 'GravityForce'. |
enabled |
boolean | no | Optional bool, the state to set; defaults to true |
script_group |
string | no | Optional "spawn" or "update" (any case), the stack the module is on; defaults to "update"; any other value is an error and nothing changes. |
Returns: { system_path: string, emitter_name: string, script_group: string, module_name: string, module_index: int, previous_enabled: bool, enabled: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_niagara_module_input¶
Destructive Idempotent
Override a Niagara module input by writing the rapid-iteration store. Locates the module function-call node (by its module_node_name, as returned by add_niagara_module_to_stack) on the emitter's spawn or update stack, matches the input by its leaf name, and writes the value into the owning group script's RapidIterationParameters store. The system is recompiled and saved. value is required: a JSON number for a float or int input, [x, y, z] for a vector, [r, g, b] or [r, g, b, a] for a color; a missing or malformed one is an error and nothing changes. HONEST GATE: bool / enum / data-interface / object inputs are not rapid-iteration eligible and return a clean error. The packed value_type must also match the input's actual type or a clean error is returned. Read it back with get_niagara_module_input.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example"). |
emitter_name |
string | yes | Display name of the emitter handle. |
module_node_name |
string | yes | The module function-call node name (from add_niagara_module_to_stack's module_node_name). |
input_name |
string | yes | Leaf name of the module input (e.g. "Drag" for "Module.Drag"). |
value_type |
string | no | One of "float", "int", "vector", or "color"; defaults to "float". int32, vec3 and linearcolor are accepted too. |
value |
any | no | Required. For float/int: a JSON number. For vector: [x, y, z], numbers within the float range. For color: [r, g, b] or [r, g, b, a], alpha 1 when omitted. A missing or malformed value is an error. |
Returns: { system_path: string, emitter_name: string, module_node_name: string, input_name: string, value_type: string, ri_param_name: string, verified: bool, success: bool, saved: bool, save_error?: string }
set_niagara_renderer_material¶
Destructive Idempotent
Set the Material UPROPERTY on a Niagara renderer (Sprite, Ribbon, Mesh or Decal: any renderer class with a Material property). Loads the material, sets it on the renderer's public Material field, requests a system compile and saves; a failed save makes success false, with saved=false and save_error. A renderer that already uses that material is a success with changed=false and saved=false, and nothing is written. A renderer_index that is not a JSON number, or a renderer class without a Material property (Light), is an error. Reads back to verify the material path is now bound, and returns the material it replaced.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle. |
renderer_index |
integer | yes | 0-based index of the renderer (use get_niagara_emitter_renderers to find the index) |
material_path |
string | yes | Asset path of the UMaterialInterface to assign. |
Returns: { system_path: string, emitter_name: string, renderer_index: int, renderer_class: string, previous_material_path: string, material_path: string, verified: bool, changed: bool, saved: bool, save_error?: string, note?: string }
set_niagara_simulation_stage_properties¶
Destructive Idempotent
Set the enum, bool, name and FIntPoint properties of one generic simulation stage (UNiagaraSimulationStageGeneric) of a Niagara emitter, found by stage_index or stage_name, in one undo step, then request a system compile and save. Use it over set_properties, which neither finds the stage nor applies ClampMin/ClampMax, compiles or saves. Only supplied fields are written; enabled goes through SetEnabled and enum writes fire PostEditChangeProperty. Every field is converted before the first write, so a value that does not convert, a non-bool enabled or a non-number stage_index is an error and nothing changes. Values already held: changed=false, saved=false. Binding fields (num_iterations, iteration_count, element_count_x|y|z, data_interface) go to not_supported, never written; add_niagara_simulation_stage sets the iteration count. A failed save makes success false with save_error. List: get_niagara_simulation_stages.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
emitter_name |
string | yes | Name of the emitter handle owning the stage. |
stage_index |
integer | no | Optional 0-based index into the emitter's simulation stages (use add_niagara_simulation_stage / get_niagara_emitter_runtime_summary); takes precedence over stage_name |
stage_name |
string | no | Optional SimulationStageName to match if stage_index is not supplied. |
name |
string | no | Optional FName: SimulationStageName (renames the stage; also accepted as simulation_stage_name). |
enabled |
boolean | no | Optional bool: base bEnabled (written via SetEnabled). |
iteration_source |
string | no | Optional enum name: IterationSource (Particles|DataInterface|DirectSet). |
execute_behavior |
string | no | Optional enum name: ExecuteBehavior (Always|OnSimulationReset|NotOnSimulationReset). |
disable_partial_particle_update |
string | no | Optional bool: bDisablePartialParticleUpdate. |
particle_iteration_state_enabled |
string | no | Optional bool: bParticleIterationStateEnabled. |
particle_iteration_state_range |
string | no | Optional {X,Y} object: ParticleIterationStateRange (FIntPoint; the generic struct path needs the object form, not a [x,y] array). |
gpu_dispatch_force_linear |
string | no | Optional bool: bGpuDispatchForceLinear. |
direct_dispatch_type |
string | no | Optional enum name: DirectDispatchType (OneD|TwoD|ThreeD). |
direct_dispatch_element_type |
string | no | Optional enum name: DirectDispatchElementType (NumThreads|NumThreadsNoClipping|NumGroups). |
Returns: { system_path, emitter_name, stage_index, stage_name, stage_class, applied:[prop names written], not_applicable:[keys], not_supported:[binding keys], enabled?: bool, post_edit_fired: bool, changed: bool, saved: bool, save_error?, note? }
set_niagara_user_parameter¶
Destructive Idempotent
Set the default value of one user parameter (the User. namespace) of a Niagara System asset in one undo step, adding the parameter when the system has none of that name and type; the asset is marked dirty, not saved (save_asset keeps it). type picks Float, Vector, Vec2, Vec4, Color, Bool or Int; without it a vector, vec2, vec4 or color key picks that type, else Float. A missing value, or one not of the JSON type the parameter takes, is an error with nothing written. A parameter already holding the value is a success with changed=false and value_set=false, nothing written. verified means the value reads back as sent. Read it with get_niagara_user_parameter; inverse: remove_niagara_user_parameter.
| Parameter | Type | Required | Description |
|---|---|---|---|
system_path |
string | yes | Asset path of the Niagara System. |
parameter_name |
string | yes | User parameter name (without the "User." prefix). |
type |
string | no | Optional type token: Float|Vector|Vec2|Vec4|Color|Bool|Int (case-insensitive); Vec3, Vector2, Vector4, LinearColor, Boolean, Int32 and Integer are accepted too. When omitted a vector, vec2, vec4 or color key picks that type, else Float |
value |
number|boolean | no | The value of a Float (a number), Int (a whole number) or Bool (true or false) parameter; those types fail without it or with another JSON type |
vector |
array | no | [X, Y, Z], 3 numbers, the value of a Vector parameter (required for it; also picks type Vector when type is omitted) |
vec2 |
array | no | [X, Y], 2 numbers, the value of a Vec2 parameter (required for it) |
vec4 |
array | no | [X, Y, Z, W], 4 numbers, the value of a Vec4 parameter (required for it) |
color |
array | no | [R, G, B] or [R, G, B, A] linear color of a Color parameter, A 1 when omitted (required for it) |
Returns: { system_path: string, parameter_name: string, parameter_type: string, value_set: bool, changed: bool, value_read_back?: number|bool|[number...], verified: bool, note?: string }