dayNight.start

Section: Skybox / Day-Night

What it does

dayNight.start takes speed. speed is optional.

The API says: 1 = 1 day per 120s

Signature

dayNight.start(speed?)

Arguments

  • speedoptional

Example · generated

function start() {  dayNight.start(1);}

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