add_niagara_data_interface
Bind a new user-parameter data interface to a Niagara system, then recompile and save it in one undoable step; a same-name parameter of another class is rejected.
Instructions
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.
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 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system_path | Yes | Asset path of the Niagara System. | |
| parameter_name | Yes | Short name of the new user-parameter (no "User." prefix) | |
| data_interface_class | Yes | Data interface class name (e.g. "StaticMesh", "Texture"): a loaded data interface class with that name, else /Script/Niagara.NiagaraDataInterface<Name> |