lifecycle.start

Section: Lifecycle

What it does

start is a lifecycle function: you write it in your script and the engine calls it. The engine calls it: once when entity starts. It receives no arguments.

The API says: once when entity starts

Signature

start()

Arguments

It takes none.

Example · generated

function start() {  ui.createText('hud', 'Ready', { x: 20, y: 20 });}

start is not called, it is written. The engine calls it: once when entity starts. The body shown here is an example of what goes in it.

7 members in lifecycle