duplicate_niagara_module_in_stack
Duplicate a Niagara module in an emitter's spawn or update graph, optionally set script group and target index, and save the system.
Instructions
Duplicate a UNiagaraNodeFunctionCall module in a Niagara emitter's spawn or update graph.
Returns: { system_path: string, emitter_name: string, script_group: string, source_module_name: string, new_module_name: string, inserted_index: int, duplicated: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_name | Yes | Display name of the module to duplicate | |
| 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_override | No | Optional absolute target index for the duplicate; defaults to one-past-source |