--- order: 3 title: Camera Manager type: XR label: XR --- The Camera Manager is a part of the XRManager instance, which you can access through `xrManager.cameraManager`. ## Properties | Property | Type | Description | | :-------------- | :----- | :----------------------- | | fixedFoveation | number | Sets the fixed foveation for the camera | ## Methods | Method | Description | | :------------- | :------------------------------------------------------ | | attachCamera | Binds the camera in the virtual world to the camera in the real world | | detachCamera | Unbinds the camera in the virtual world from the camera in the real world | ## Update Process Simply synchronizing the parameters and poses of the `real camera` to the `virtual camera` allows the `real scene` and `virtual scene` to stay **synchronized**. ```mermaid flowchart TD A[时间片开始] --> B[获取现实相机数据] B --> C[将姿态同步给虚拟相机] C --> D[将 viewport 同步给虚拟相机] D --> E[将投影矩阵同步给虚拟相机] E --> F[时间片结束] F --> A ```