set_light_properties
Modify a light actor's properties like attenuation radius, cone angles, color temperature, shadows, and IES profiles. Handles partial updates and confirms changes via read-back.
Instructions
Set component-level light properties: attenuation radius, source radius/length, cone angles, color temperature, indirect/volumetric intensity, translucent lighting, plus RectLight source size + barn doors + source texture, IES profile (texture/brightness scale/use-brightness), light-function (material/scale/fade distance/disabled brightness), shadow bias, cast/volumetric shadow, contact-shadow length (+ world-space flag), and inverse-squared falloff. Round-trips with get_light_properties. Partial update (idempotent): only fields present are written; a field that doesn't apply to the light's type returns an honest note instead of an error. Verify by read-back via get_light_properties (light_* keys).
Returns: { light_name, light_subtype, settings_applied: {...}, notes: [string], applied_count }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| light_name | Yes | Name of the light actor to modify. | |
| ies_texture | No | asset path to a UTextureLightProfile (IES profile); omit/empty leaves it unchanged (all lights). | |
| shadow_bias | No | float, dynamic-shadow depth bias (all lights). | |
| temperature | No | float Kelvin color temperature (all lights; pair with use_temperature). | |
| cast_shadows | No | bool, whether the light casts shadows (all lights). | |
| source_width | No | float, RectLight emissive width (Rect only). | |
| source_height | No | float, RectLight emissive height (Rect only). | |
| source_length | No | float, line-source length (Point/Spot). | |
| source_radius | No | float, soft source radius (Point/Spot). | |
| source_texture | No | asset path to a UTexture for the RectLight surface; omit/empty leaves it unchanged (Rect only). | |
| barn_door_angle | No | float degrees, RectLight barn-door opening angle (Rect only). | |
| use_temperature | No | bool, enable color temperature (all lights). | |
| barn_door_length | No | float, RectLight barn-door length (Rect only). | |
| falloff_exponent | No | float, manual falloff exponent when inverse-squared is off (Point/Spot). | |
| inner_cone_angle | No | float degrees (Spot only). | |
| outer_cone_angle | No | float degrees (Spot only). | |
| attenuation_radius | No | float, light reach — local lights only (Point/Spot/Rect). | |
| soft_source_radius | No | float (Point/Spot). | |
| use_ies_brightness | No | bool, use the IES profile's brightness (all lights). | |
| ies_brightness_scale | No | float, IES brightness multiplier (all lights). | |
| light_function_scale | No | [x,y,z] float array, light-function projection scale (all lights). | |
| contact_shadow_length | No | float, screen-space contact-shadow ray length (all lights). | |
| cast_volumetric_shadow | No | bool, whether the light casts volumetric (beam) shadows (all lights). | |
| light_function_material | No | asset path to a UMaterialInterface light-function material; omit/empty leaves it unchanged (all lights). | |
| affect_translucent_lighting | No | bool (all lights). | |
| contact_shadow_length_in_ws | No | bool, interpret contact_shadow_length in world space instead of screen space (all lights). | |
| indirect_lighting_intensity | No | float (all lights). | |
| use_inverse_squared_falloff | No | bool, physically-based inverse-square falloff (Point/Spot). | |
| light_function_fade_distance | No | float, distance at which the light function fades out (all lights). | |
| volumetric_scattering_intensity | No | float (all lights). | |
| light_function_disabled_brightness | No | float, brightness where the light function is faded out (all lights). |