User Tools

Site Tools


apply_lighting_preset

This is an old revision of the document!


Apply Lighting Preset


Changes…

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: All entities in the “torches” group will have the color of their light change to red over a duration of one second.

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.1639438234.txt.gz · Last modified: 2021/12/13 15:30 by justin