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

GoogleARCore.ARCoreCameraConfigFilter

The ARCoreCameraConfigFilter class derives a list of camera configurations available on the device at runtime.

Summary

This is used to derive a list of camera configurations available on the device at runtime to select from.

NOTE: It is possible to select options in such a way that some devices will have no available configurations at runtime. In this case, your app will not run.

Beginning with ARCore SDK 1.15.0, some devices support additional camera configs with lower GPU texture resolutions than the device's default GPU texture resolution. See the ARCore supported devices for an up to date list of affected devices.

An app may adjust its capabilities at runtime by selecting a wider range of config filters and using ARCoreSession.RegisterChooseCameraConfigurationCallback( ARCoreSession.OnChooseCameraConfigurationDelegate) to specify a selection function. In that function the app may then adjust its runtime settings and select an appropriate camera configuration. If no callback is registered, ARCore will use the first CameraConfig in the list of available configurations.

Inheritance

Inherits from: ScriptableObject

Public attributes

DepthSensorUsage
This allows an app to use or disable a hardware depth sensor if present on the device.
StereoCameraUsage
This allows an app to use or disable additional cameras to improve tracking.
TargetCameraFramerate
This is the camera frame rates filter for the currently selected camera.

Public functions

OnValidate()
void
Unity OnValidate.

Classes

GoogleARCore.ARCoreCameraConfigFilter.DepthSensorUsageFilter

This allows an app to use or disable a hardware depth sensor if present on the device.

GoogleARCore.ARCoreCameraConfigFilter.StereoCameraUsageFilter

This allows an app to use or disable a stereo camera if present on the device.

GoogleARCore.ARCoreCameraConfigFilter.TargetCameraFramerateFilter

This is the camera frame rates filter for the currently selected camera.

Public attributes

DepthSensorUsage

DepthSensorUsageFilter DepthSensorUsage

This allows an app to use or disable a hardware depth sensor if present on the device.

StereoCameraUsage

StereoCameraUsageFilter StereoCameraUsage

This allows an app to use or disable additional cameras to improve tracking.

TargetCameraFramerate

TargetCameraFramerateFilter TargetCameraFramerate

This is the camera frame rates filter for the currently selected camera.

Public functions

OnValidate

void OnValidate()

Unity OnValidate.