Skip to main content

onCameraModeChange

This event is triggered when the camera mode changes.

Parameters

NameTypeDescription
modeCameraModeThe camera mode
instantbooleanIndicates whether the change is instant or involves a transition

Example

engine.events.on('onCameraModeChange', (mode, instant) => {
console.log('the camera mode has changed to', mode, 'instantly?', instant);
});

Available on: Client