world.preset

Section: Post-Process

What it does

world.preset takes name, id and overrides. id and overrides are optional.

Signature

world.preset(name, id?, overrides?)

Arguments

  • name
  • idoptional
  • overridesoptional

Example · generated

function start() {  world.create('main', 'plank');  world.preset('main');}

world.create is there to give the call something to act on; world.preset is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.

3 members in world