XR

Camera Manager

The camera manager is part of the XRManager instance and can be accessed via xrManager.cameraManager.

Properties

PropertyTypeDescription
fixedFoveationnumberSets a fixed foveation value for the camera. See fixedFoveation for details.

Methods

MethodDescription
attachCameraBinds the virtual world camera to the real-world camera.
detachCameraUnbinds the virtual world camera from the real-world camera.

For AR sessions, bind to XRTrackedInputDevice.Camera.
For VR sessions, bind to XRTrackedInputDevice.LeftCamera and XRTrackedInputDevice.RightCamera.

Update Process

To maintain synchronization between the real and virtual scenes, simply mirror the real camera's parameters and pose to the virtual camera.

Was this page helpful?