User Tools

Site Tools


set_ambient_light_color

This is an old revision of the document!


Set Ambient Light Color


Changes the color of the map's ambient light over a duration of time.

set_ambient_light_color(color, duration)
ArgumentDescriptionTypeRequired
colorNew color for the ambient light.ColorYes
durationFade duration from its current color to the new color.DecimalNo

Example:

set_ambient_light_color(color[255, 0, 255], 1)

Results: The color of the map's ambient light will change to purple over a duration of one second.

Use the Set Ambient Light Color function to

Editor Node:

Visual Demo:

set_ambient_light_color.1502552256.txt.gz · Last modified: 2017/08/12 08:37 by justin