Skip to main content

onFrame

This event is triggered every frame.

Parameters

NameTypeDescription
deltanumberThe time in seconds since the last frame.

Example

engine.events.on('onFrame', delta => {
console.log('Frame delta:', delta);
});

Available on: Client Server