onCameraModeChange
This event is triggered when the camera mode changes.
Parameters
Name | Type | Description |
---|---|---|
mode | CameraMode | The camera mode |
instant | boolean | Indicates 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