Skip to main content

Interface: ProjectCallbacks

Project lifecycle callbacks.

Properties

OnSetup()?

optional OnSetup: (project, sceneGraph?) => void;

Called during project setup.

Parameters

ParameterTypeDescription
projectProjectThe launched Project.
sceneGraph?SceneGraphThe loaded scene graph, if one is available.

Returns

void


OnTick()?

optional OnTick: (project, timestep) => void;

Called on each tick.

Parameters

ParameterTypeDescription
projectProjectThe launched Project.
timestepnumberThe elapsed time since the previous tick, in milliseconds.

Returns

void