======Set Directional Light Enabled======
----
Enables or disables the [[map|map's]] [[directional light]].
====Signature:====
set_directional_light_enabled(enabled)
^Argument^Description^Type^Required^
|enabled|Determines the [[directional_light|directional light's]] state (on or off).|[[Boolean]]|Yes|
If you'd like to change the [[color]] of the [[directional light]] instead of turning it on or off, see the related [[Set Directional Light Color]] function.
====Example:====
set_directional_light_enabled(false);
//Results:// The [[map|map's]] [[directional light]] is disabled and no longer affects the scene until enabled again.
Use the **Set Directional Light Enabled** function to change the overall mood of a scene or to complement another light source's [[color]] change.
====Editor Node:====
{{:wiki:set_directional_light_enabled_node.png?nolink|}}
====Visual Demo:====
{{:wiki:set_directional_light_enabled_demo.gif?nolink|}}
~~NOTOC~~