What it does
scene.setAmbientColor sets AmbientColor on a scene object. It takes r, g and b.
Signature
scene.setAmbientColor(r, g, b)Arguments
rgb
Example · generated
function start() { scene.setAmbientColor(1, 0.8, 0.4);}scene.setAmbientColor is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.