MainCamera.controls property
Returns the current camera controls, the type of the controls depends on the mode property:
- if mode is
firstpersonthe controls will be an instance of FirstPersonCameraControlsWrapper - if mode isthirdpersonthe controls will be an instance of ThirdPersonCameraControlsWrapper - if mode isflythe controls will be an instance of FlyCameraControlsWrapper
Signature:
set controls(val: FirstPersonCameraControlsWrapper | ThirdPersonCameraControlsWrapper | FlyCameraControlsWrapper);