add_niagara_light_renderer
Adds a light renderer to a Niagara emitter with defaults for radius, falloff, translucency, and color shift, then compiles and saves the system.
Instructions
Add a NiagaraLightRendererProperties (UNiagaraLightRendererProperties) to a Niagara emitter with light-specific defaults applied via reflection. Companion to add_niagara_renderer with renderer_type='Light' — use this cmd when you want to seed light config (radius scale, falloff mode, affects-translucency, color add) in the same call. Then requests a system compile and saves.
Returns: { system_path, emitter_name, renderer_index, renderer_class, radius_scale, default_exponent, specular_scale, diffuse_scale, color_add:{}, renderer_count, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color_add | No | Optional [r, g, b] static color shift. | |
| system_path | Yes | Asset path of the Niagara System (e.g. "/Game/Niagara/NS_Example"). | |
| emitter_name | Yes | Name of the emitter handle. | |
| radius_scale | No | Optional float (default 1.0, ClampMin=0). | |
| diffuse_scale | No | Optional float (default 1.0, ClampMin=0). | |
| specular_scale | No | Optional float (default 1.0, ClampMin=0). | |
| default_exponent | No | Optional float (default 1.0, ClampMin=0); only used when use_inverse_squared_falloff=false. | |
| allow_mega_lights | No | Optional bool (default false). True => MegaLights path (Lumen); see bMegaLightsCastShadows below. | |
| affects_translucency | No | Optional bool (default true). Set false for cheaper lights that shouldn't bleed through translucent surfaces. | |
| alpha_scales_brightness | No | Optional bool (default true). When true, particle color alpha modulates brightness. | |
| mega_lights_cast_shadows | No | Optional bool (default false). | |
| use_inverse_squared_falloff | No | Optional bool (default true). True => UE physical light; false => use DefaultExponent below. |