======Apply Lighting Preset======
----
Changes the lighting of the current [[map]] over a duration of time.
====Signature:====
apply_lighting_preset(preset_name, duration)
^Argument^Description^Type^Required^
|preset_name|Name of the lighting preset (as defined in the [[Map Editor]]).|[[String]]|Yes|
|duration|Fade duration from the current lighting to the new lighting.|[[Number]]|No|
====Example:====
apply_lighting_preset("Night", 2);
//Results:// The current [[map|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:====
{{:apply_lighting_preset_node.png?nolink|}}
====Visual Demo:====
{{:apply_lighting_preset_demo.gif?nolink|}}
~~NOTOC~~