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, such as a time-of-flight sensor (or ToF 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. |
This allows an app to use or disable a hardware depth sensor, such as a time-of-flight sensor (or ToF sensor), if present on the device. |
GoogleARCore. |
This allows an app to use or disable a stereo camera if present on the device. |
GoogleARCore. |
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, such as a time-of-flight sensor (or ToF 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.