Gets a reference to the current camera mode object.
Camera mode.
Register a callback to be run after the camera mode has generated a camera transform. Callback can return a modified CameraTransform to update the camera for this frame.
Clean up function to unregister callback
Set the current camera mode.
New mode.
Sets a callback function that is called when the camera mode is cleared. This is useful for defaulting the camera system to a specific camera mode. Only one callback can be set.
Leaving out the onClearCallback
parameter will clear the callback.
Optional
onClearCallback: (() => CameraMode)Callback.
Drives the camera modes.