OpenXRSpatialCapabilityConfigurationPlaneTracking
Plane-detection component selection.
Configuration for CreateSpatialContext, not a detected Entity, tracker or OS permission. Requires the capability in a running OpenXR session. Constructor success and a selected dictionary do not mean the device detects that type. HasValidConfiguration checks current usability; context creation is separately asynchronous.
GetConfiguration returns a borrowed native pointer: neither substitute it for a RID nor retain it beyond resource lifetime. GetEnabledComponents reads selected components and can be empty before configuration building. Reading retrieves no room/marker data.
Mesh2D/Polygon2D/label support is cached per instance. Create configuration after session readiness; do not reuse an earlier cached false after session changes. Mesh2D wins when both geometric components are available.
Spatial-entity setup. Twelve Windows XR-off checks covered inactive configurations/dictionary metadata. Real headers/context/discovery, session changes and headsets remain untested. Engine unchanged.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
OpenXRSpatialCapabilityConfigurationPlaneTrackingConstructor
public OpenXRSpatialCapabilityConfigurationPlaneTracking();Creates a caller-owned RefCounted configuration, not a capability singleton/context. Starts no OpenXR, detector or requests. The component list is empty before supported GetConfiguration; keep the resource alive during native use. Dispose owned instances after use/releasing references, not engine-owned configurations.
Methods4
GetEnabledComponentslong[]
public long[] GetEnabledComponents();Copy of current component types as long[], populated by supported GetConfiguration. Includes Bounded2D/PlaneAlignment, prefers Mesh2D over Polygon2D, and adds optional semantic labels. Selected configuration rather than every device feature or received geometry; empty before building.
long[]Copy of current component types as long[], populated by supported GetConfiguration. Includes Bounded2D/PlaneAlignment, prefers Mesh2D over Polygon2D, and adds optional semantic labels. Selected configuration rather than every device feature or received geometry; empty before building.
SupportsLabelsbool
public bool SupportsLabels();Queries plane component semantic labels through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.
boolQueries plane component semantic labels through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.
SupportsMesh2Dbool
public bool SupportsMesh2D();Queries plane component Mesh2D through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.
boolQueries plane component Mesh2D through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.
SupportsPolygonsbool
public bool SupportsPolygons();Queries plane component Polygon2D through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.
boolQueries plane component Polygon2D through the spatial extension and caches the result in this configuration. Querying before the relevant session is ready can retain false: create a fresh configuration after session/support changes. True promises no data in every snapshot; configuration building prefers Mesh2D over polygons.