XRSceneMeshingFeature

This feature provides access to the XR_ANDROID_scene_meshing extension.

Summary

Inheritance

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

Public attributes

ExtensionString = "XR_ANDROID_scene_meshing"
const string
The required OpenXR extension.
FeatureId = "com.google.xr.extensions.scene_meshing"
const string
The feature ID string.
UiName = "Android XR (Extensions): Scene Meshing"
const string
The UI name shows on the XR Plug-in Management panel, help users to understand validation errors and expected fixes.

Public static attributes

IsExtensionEnabled => _extensionEnabled
bool
Gets if the required OpenXR extension is enabled.
RequiredPermission = AndroidXRPermission.SceneUnderstandingFine
Runtime permission required to enable scene understanding fine.

Public functions

GetTargetVersion()
Gets the target version of the given feature if applicable.
SetProviderEnabledOnStart(bool enabled)
void
Sets if the scene meshing provider should be enabled on start of XRMeshSubsystem.

Public attributes

ExtensionString

const string ExtensionString = "XR_ANDROID_scene_meshing"

The required OpenXR extension.

FeatureId

const string FeatureId = "com.google.xr.extensions.scene_meshing"

The feature ID string.

UiName

const string UiName = "Android XR (Extensions): Scene Meshing"

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

Public static attributes

IsExtensionEnabled

bool IsExtensionEnabled => _extensionEnabled

Gets if the required OpenXR extension is enabled.

When OpenXR runtime is waiting, it returns null. Otherwise, it indicates whether the XR_ANDROID_scene_meshing extensions is available on current device.

RequiredPermission

readonly AndroidXRPermission RequiredPermission =
            AndroidXRPermission.SceneUnderstandingFine

Runtime permission required to enable scene understanding fine.

Public functions

GetTargetVersion

XRSpatialSdkVersions GetTargetVersion()

Gets the target version of the given feature if applicable.

SetProviderEnabledOnStart

void SetProviderEnabledOnStart(
  bool enabled
)

Sets if the scene meshing provider should be enabled on start of XRMeshSubsystem.

Details
Parameters
enabled
Decides whether the scene meshing provider should be enabled on start of XRMeshSubsystem.