add_niagara_renderer
Adds a new renderer (Sprite, Ribbon, Mesh, or Light) to a Niagara emitter, optionally sets its material, then compiles and saves the system.
Instructions
Add a new renderer (Sprite / Ribbon / Mesh / Light) to a Niagara emitter. Creates a UNiagaraRendererProperties instance of the requested concrete class (Sprite / Ribbon / Mesh / Light), optionally sets the Material UPROPERTY, and appends it to the emitter's RendererProperties array. Then requests a system compile and saves the asset.
Returns: { system_path: string, emitter_name: string, renderer_type: string, renderer_class: string, renderer_index: int, material_path: string, renderer_count: int, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| system_path | Yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example"). | |
| emitter_name | Yes | Name of the emitter handle (the human-readable name in the system's emitter list). | |
| material_path | No | Optional asset path; sets the renderer's Material property. If omitted, the renderer is added with a null material (still a valid empty renderer). | |
| renderer_type | Yes | One of "Sprite" / "Ribbon" / "Mesh" / "Light" (case-insensitive). |