This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| set_directional_light_enabled [2017/08/13 07:25] – justin | set_directional_light_enabled [2021/04/21 18:50] (current) – justin | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ---- | ---- | ||
| - | Enables or disables the map's [[directional light]]. | + | Enables or disables the [[map|map's]] [[directional light]]. |
| + | ====Signature: | ||
| <code python> | <code python> | ||
| set_directional_light_enabled(enabled) | set_directional_light_enabled(enabled) | ||
| Line 9: | Line 10: | ||
| ^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
| - | |enabled|Determines the [[directional light]]'s state (on or off).|[[Boolean]]|Yes| | + | |enabled|Determines the [[directional_light|directional light' |
| <WRAP center round info 100%> | <WRAP center round info 100%> | ||
| - | 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. | + | 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: | ====Example: | ||
| - | < | + | < |
| - | set_directional_light_enabled(false) | + | set_directional_light_enabled(false); |
| </ | </ | ||
| - | // | + | // |
| <WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
| - | Use the **Set Directional Light Color** function to | + | Use the **Set Directional Light Enabled** function to change the overall mood of a scene or to complement another light source' |
| </ | </ | ||
| Line 32: | Line 33: | ||
| <WRAP half column> | <WRAP half column> | ||
| - | ====Visual Demo: | + | ====Visual Demo:==== |
| {{: | {{: | ||
| </ | </ | ||