add_niagara_module_to_graph
Insert a UNiagaraScript module into a Niagara emitter's particle stack graph at a chosen index, with optional spawn/update grouping and append fallback.
Instructions
Insert a UNiagaraScript module at a specific index in a Niagara emitter's particle stack graph.
Returns: { system_path: string, emitter_name: string, module_script_path: string, script_group: string, target_index: int, module_node_name: string, added: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system_path | Yes | Asset path of the Niagara System. | |
| emitter_name | Yes | Name of the emitter handle. | |
| script_group | No | Optional "spawn" or "update"; defaults to "update" | |
| target_index | No | Optional stack index for insertion; INDEX_NONE (-1) appends to the end | |
| module_script_path | Yes | Asset path of the module UNiagaraScript |