skybox.create

Section: Skybox / Day-Night

What it does

skybox.create brings a skybox object into being: it is how the rest of the script comes to have one. It takes size. size is optional.

Signature

skybox.create(size?)

Arguments

  • sizeoptional

Example · generated

function start() {  skybox.create(1);}

skybox.create 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.

9 members in skybox