dayNight.setSunLight

Section: Skybox / Day-Night

What it does

dayNight.setSunLight sets SunLight on a dayNight object. It takes lightId.

Signature

dayNight.setSunLight(lightId)

Arguments

  • lightId

Example · generated

function start() {  dayNight.setSunLight('main');}

dayNight.setSunLight 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.

6 members in dayNight