SpatialBoundingBoxFeature

Spatial entity feature to enable AR Foundation Bounding Box support.

Summary

Inheritance

Inherits from: AndroidXRSpatialEntityFeature, Google.XR.Extensions.IXRSpatialSdk

Public attributes

ExtensionStrings = Constants.EXT_future + " " + Constants.EXT_spatial_entity + " " + Constants.ANDROID_spatial_object_tracking
const string
The required OpenXR extensions.
FeatureId = "com.google.xr.extensions.spatialentities.boundingbox"
const string
The feature ID string.
UiName = "Spatial Entities (Extensions): Bounding Box"
const string
The UI name shows on the XR Plug-in Management panel, it helps users to understand validation errors and expected fixes.

Public static attributes

IsExtensionEnabled => _extensionEnabled
bool
Gets if the required OpenXR extension is enabled.
RequiredPermission = AndroidXRPermission.SceneUnderstandingCoarse
Runtime permission required to enable spatial bounding box.

Public functions

GetTargetVersion()
Gets the target version of the given feature if applicable.

Public attributes

ExtensionStrings

const string ExtensionStrings =
            Constants.EXT_future + " " +
            Constants.EXT_spatial_entity + " " +
            Constants.ANDROID_spatial_object_tracking

The required OpenXR extensions.

FeatureId

const string FeatureId = "com.google.xr.extensions.spatialentities.boundingbox"

The feature ID string.

UiName

const string UiName = "Spatial Entities (Extensions): Bounding Box"

The UI name shows on the XR Plug-in Management panel, it helps users to understand validation errors and expected fixes.

Public static attributes

IsExtensionEnabled

bool IsExtensionEnabled => _extensionEnabled

Gets if the required OpenXR extension is enabled.

RequiredPermission

readonly AndroidXRPermission RequiredPermission =
            AndroidXRPermission.SceneUnderstandingCoarse

Runtime permission required to enable spatial bounding box.

Public functions

GetTargetVersion

XRSpatialSdkVersions GetTargetVersion()

Gets the target version of the given feature if applicable.