dayNight.setTime

Section: Skybox / Day-Night

What it does

dayNight.setTime sets Time on a dayNight object. It takes 0..1.

The API says: 0.25=sunrise, 0.5=noon

Signature

dayNight.setTime(0..1)

Arguments

  • 0..1

Example · generated

function start() {  dayNight.setTime(0.5);}

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