User Tools

Site Tools


apply_lighting_preset

Apply Lighting Preset


Changes the lighting of the current map over a duration of time.

Signature:

apply_lighting_preset(preset_name, duration)
ArgumentDescriptionTypeRequired
preset_nameName of the lighting preset (as defined in the Map Editor).StringYes
durationFade duration from the current lighting to the new lighting.NumberNo

Example:

apply_lighting_preset("Night", 2);

Results: The current map's lighting will change to the “Night” preset over a duration of two seconds.

Use the Apply Lighting Preset function to give the effect that the time of day has changed or to change the atmosphere of an indoor scene.

Editor Node:

Visual Demo:

apply_lighting_preset.txt · Last modified: 2021/12/13 16:04 by justin