set_niagara_mesh_renderer_mesh
Assign a static mesh to a Niagara Mesh renderer's Meshes[] slot, fixing empty renderers that draw nothing. Loads the mesh asset, grows the array if needed, then compiles and saves the system.
Instructions
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. add_niagara_renderer type=Mesh leaves Meshes empty (renders nothing); this is the command that makes a Mesh renderer actually draw. Idempotent: re-assigning the same mesh to the same slot does not grow the array.
Returns: { system_path, emitter_name, renderer_index, renderer_class, slot, mesh_path, mesh_count, already_assigned: bool, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | Yes | Optional 0-based slot index into Meshes[] (default 0). The array is grown with default elements up to this index if needed. | |
| mesh_path | Yes | Asset path of the UStaticMesh to assign (e.g. "/Engine/BasicShapes/Cube"). | |
| system_path | Yes | Asset path of the Niagara System. | |
| emitter_name | Yes | Name of the emitter handle. | |
| renderer_index | Yes | 0-based index of the Mesh renderer (use get_niagara_emitter_renderers). |