# XRCameraConfigurationExtensions

Extensions to AR Subsystem's XRCameraConfiguration struct.

## Summary

| ### Public static functions ||
|---|---|
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/XRCameraConfigurationExtensions#getdepthsensorusage(this https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html cameraConfig)` | `https://developers.google.com/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. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/XRCameraConfigurationExtensions#getfpsrange(this https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html cameraConfig)` | `https://docs.unity3d.com/ScriptReference/Vector2Int.html` Gets the target camera capture frame rate range for this camera config. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/XRCameraConfigurationExtensions#getfacingdirection(this https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html cameraConfig)` | `https://developers.google.com/ar/reference/unity-arf/namespace/Google/XR/ARCoreExtensions#cameraconfigfacingdirection` Gets the camera facing direction for this camera config. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/XRCameraConfigurationExtensions#getstereocamerausage(this https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html cameraConfig)` | `https://developers.google.com/ar/reference/unity-arf/namespace/Google/XR/ARCoreExtensions#cameraconfigstereocamerausage` Gets the stereo camera usage for this camera config. |
| `https://developers.google.com/ar/reference/unity-arf/class/Google/XR/ARCoreExtensions/XRCameraConfigurationExtensions#gettexturedimensions(this https://docs.unity3d.com/Packages/com.unity.xr.arsubsystems@4.2/api/UnityEngine.XR.ARSubsystems.XRCameraConfiguration.html cameraConfig)` | `https://docs.unity3d.com/ScriptReference/Vector2Int.html` Gets the dimensions of the GPU-accessible external texture for this camera config. |

## Public static functions

### GetDepthSensorUsage

```c#
CameraConfigDepthSensorUsage GetDepthSensorUsage(
  this XRCameraConfiguration cameraConfig
)
```
Gets the hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), usage for this camera config.


Details Parameters `cameraConfig` An XRCameraConfiguration instance. **Returns** Returns the hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), usage type.

### GetFPSRange

```c#
Vector2Int GetFPSRange(
  this XRCameraConfiguration cameraConfig
)
```
Gets the target camera capture frame rate range for this camera config.


Details Parameters `cameraConfig` An XRCameraConfiguration instance. **Returns** Returns the range from minimal target FPS to maximal target FPS.

### GetFacingDirection

```c#
CameraConfigFacingDirection GetFacingDirection(
  this XRCameraConfiguration cameraConfig
)
```
Gets the camera facing direction for this camera config.


Details Parameters `cameraConfig` An XRCameraConfiguration instance. **Returns** Returns the camera facing direction.

### GetStereoCameraUsage

```c#
CameraConfigStereoCameraUsage GetStereoCameraUsage(
  this XRCameraConfiguration cameraConfig
)
```
Gets the stereo camera usage for this camera config.


Details Parameters `cameraConfig` An XRCameraConfiguration instance. **Returns** Returns the stereo camera usage type.

### GetTextureDimensions

```c#
Vector2Int GetTextureDimensions(
  this XRCameraConfiguration cameraConfig
)
```
Gets the dimensions of the GPU-accessible external texture for this camera config.


Details Parameters `cameraConfig` An XRCameraConfiguration instance. **Returns** Returns the GPU texture dimensions.