[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-14 UTC."],[[["\u003cp\u003eXRCameraConfigurationExtensions provides a set of functions to access camera configuration details within AR Subsystems.\u003c/p\u003e\n"],["\u003cp\u003eThese extensions allow developers to retrieve information like depth sensor usage, frame rate range, facing direction, stereo camera usage, and texture dimensions.\u003c/p\u003e\n"],["\u003cp\u003eEach function takes an XRCameraConfiguration instance as input and returns the specific configuration value.\u003c/p\u003e\n"],["\u003cp\u003eThese functions are particularly useful for customizing and optimizing AR experiences based on device camera capabilities.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use these extensions to adapt their applications for different hardware configurations and ensure optimal performance.\u003c/p\u003e\n"]]],[],null,["XRCameraConfigurationExtensions\n\nExtensions to AR Subsystem's XRCameraConfiguration struct.\n\nSummary\n\n| Public static functions ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetDepthSensorUsage](#getdepthsensorusage)`(this `[XRCameraConfiguration](https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html)` cameraConfig)` | [CameraConfigDepthSensorUsage](/ar/reference/unity-arf/namespace/Google/XR/ARCoreExtensions#cameraconfigdepthsensorusage) Gets the hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), usage for this camera config. |\n| [GetFPSRange](#getfpsrange)`(this `[XRCameraConfiguration](https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html)` cameraConfig)` | [Vector2Int](https://docs.unity3d.com/ScriptReference/Vector2Int.html) Gets the target camera capture frame rate range for this camera config. |\n| [GetFacingDirection](#getfacingdirection)`(this `[XRCameraConfiguration](https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html)` cameraConfig)` | [CameraConfigFacingDirection](/ar/reference/unity-arf/namespace/Google/XR/ARCoreExtensions#cameraconfigfacingdirection) Gets the camera facing direction for this camera config. |\n| [GetStereoCameraUsage](#getstereocamerausage)`(this `[XRCameraConfiguration](https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html)` cameraConfig)` | [CameraConfigStereoCameraUsage](/ar/reference/unity-arf/namespace/Google/XR/ARCoreExtensions#cameraconfigstereocamerausage) Gets the stereo camera usage for this camera config. |\n| [GetTextureDimensions](#gettexturedimensions)`(this `[XRCameraConfiguration](https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html)` cameraConfig)` | [Vector2Int](https://docs.unity3d.com/ScriptReference/Vector2Int.html) Gets the dimensions of the GPU-accessible external texture for this camera config. |\n\nPublic static functions \n\nGetDepthSensorUsage \n\n```c#\nCameraConfigDepthSensorUsage GetDepthSensorUsage(\n this XRCameraConfiguration cameraConfig\n)\n``` \nGets the hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), usage for this camera config.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------| | `cameraConfig` | An XRCameraConfiguration instance. | |\n| **Returns** | Returns the hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), usage type. |\n\nGetFPSRange \n\n```c#\nVector2Int GetFPSRange(\n this XRCameraConfiguration cameraConfig\n)\n``` \nGets the target camera capture frame rate range for this camera config.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------| | `cameraConfig` | An XRCameraConfiguration instance. | |\n| **Returns** | Returns the range from minimal target FPS to maximal target FPS. |\n\nGetFacingDirection \n\n```c#\nCameraConfigFacingDirection GetFacingDirection(\n this XRCameraConfiguration cameraConfig\n)\n``` \nGets the camera facing direction for this camera config.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------| | `cameraConfig` | An XRCameraConfiguration instance. | |\n| **Returns** | Returns the camera facing direction. |\n\nGetStereoCameraUsage \n\n```c#\nCameraConfigStereoCameraUsage GetStereoCameraUsage(\n this XRCameraConfiguration cameraConfig\n)\n``` \nGets the stereo camera usage for this camera config.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------| | `cameraConfig` | An XRCameraConfiguration instance. | |\n| **Returns** | Returns the stereo camera usage type. |\n\nGetTextureDimensions \n\n```c#\nVector2Int GetTextureDimensions(\n this XRCameraConfiguration cameraConfig\n)\n``` \nGets the dimensions of the GPU-accessible external texture for this camera config.\n\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------------|------------------------------------| | `cameraConfig` | An XRCameraConfiguration instance. | |\n| **Returns** | Returns the GPU texture dimensions. |"]]