User Tools

Site Tools


set_directional_light_enabled

This is an old revision of the document!


Set Directional Light Enabled


Enables or disables the map's directional light.

set_directional_light_enabled(enabled)
ArgumentDescriptionTypeRequired
enabledDetermines the directional light's state (on or off).BooleanYes

If you'd like to change the color of the directional light instead of toggling it on or off, see the related Set Directional Light Color function.

Example:

set_directional_light_enabled(false)

Results: The map's directional light is disabled and no longer affects the scene until enabled again.

Use the Set Directional Light Color function to

Editor Node:

Visual Demo:

set_directional_light_enabled.1502634234.txt.gz · Last modified: 2017/08/13 07:23 by justin