Google is committed to advancing racial equity for Black communities. See how.

Google.XR.ARCoreExtensions.XRCameraConfigurationExtensions

Extensions to AR Subsystem's XRCameraConfiguration struct.

Summary

Public static functions

GetDepthSensorUsage(this XRCameraConfiguration cameraConfig)
Gets the depth sensor usage for this camera config.
GetFPSRange(this XRCameraConfiguration cameraConfig)
Vector2Int
Gets the target camera capture frame rate range for this camera config.
GetTextureDimensions(this XRCameraConfiguration cameraConfig)
Vector2Int
Gets the dimensions of the GPU-accessible external texture for this camera config.

Public static functions

GetDepthSensorUsage

CameraConfigDepthSensorUsage GetDepthSensorUsage(
  this XRCameraConfiguration cameraConfig
)

Gets the depth sensor usage for this camera config.

Details
Parameters
cameraConfig
An XRCameraConfiguration instance.
Returns
Returns the depth sensor usage type.

GetFPSRange

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.

GetTextureDimensions

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.