Struct XrSpatialCapabilityConfigurationArucoMarkerEXT
Capability configuration struct for the ArUco marker tracking capability.
Provided by XR_EXT_spatial_marker_tracking.
Implements
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialCapabilityConfigurationArucoMarkerEXT : ISpatialCapabilityConfiguration
Remarks
Warning
Don't initialize this struct with the default parameterless constructor. Use a constructor with parameters to ensure that type is correctly initialized to SpatialCapabilityConfigurationArucoMarkerEXT.
Constructors
XrSpatialCapabilityConfigurationArucoMarkerEXT(uint, XrSpatialComponentTypeEXT*, XrSpatialMarkerArucoDictEXT)
Construct an instance with a null next pointer.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | enabledComponentCount | The count of elements in |
| XrSpatialComponentTypeEXT* | enabledComponents | Pointer to an array of components to enable for this capability. Must be non-null. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
XrSpatialCapabilityConfigurationArucoMarkerEXT(void*, uint, XrSpatialComponentTypeEXT*, XrSpatialMarkerArucoDictEXT)
Construct an instance.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(void* next, uint enabledComponentCount, XrSpatialComponentTypeEXT* enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| uint | enabledComponentCount | The count of elements in |
| XrSpatialComponentTypeEXT* | enabledComponents | Pointer to an array of components to enable for this capability. Must be non-null. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
XrSpatialCapabilityConfigurationArucoMarkerEXT(void*, NativeArray<XrSpatialComponentTypeEXT>, XrSpatialMarkerArucoDictEXT)
Construct an instance from a native array.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(void* next, NativeArray<XrSpatialComponentTypeEXT> enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialComponentTypeEXT> | enabledComponents | Native array of components to enable for this capability. Must be non-empty. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
XrSpatialCapabilityConfigurationArucoMarkerEXT(void*, ReadOnly, XrSpatialMarkerArucoDictEXT)
Construct an instance from a read-only native array.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(void* next, NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialComponentTypeEXT>.ReadOnly | enabledComponents | Read-only native array of components to enable for this capability. Must be non-empty. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
XrSpatialCapabilityConfigurationArucoMarkerEXT(NativeArray<XrSpatialComponentTypeEXT>, XrSpatialMarkerArucoDictEXT)
Construct an instance with a null next pointer from a native array.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(NativeArray<XrSpatialComponentTypeEXT> enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialComponentTypeEXT> | enabledComponents | Native array of components to enable for this capability. Must be non-empty. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
XrSpatialCapabilityConfigurationArucoMarkerEXT(ReadOnly, XrSpatialMarkerArucoDictEXT)
Construct an instance with a null next pointer from a read-only native array.
Declaration
public XrSpatialCapabilityConfigurationArucoMarkerEXT(NativeArray<XrSpatialComponentTypeEXT>.ReadOnly enabledComponents, XrSpatialMarkerArucoDictEXT arUcoDict)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialComponentTypeEXT>.ReadOnly | enabledComponents | Read-only native array of components to enable for this capability. Must be non-empty. |
| XrSpatialMarkerArucoDictEXT | arUcoDict | The marker dictionary to detect. |
Properties
arUcoDict
The marker dictionary to detect.
Declaration
public XrSpatialMarkerArucoDictEXT arUcoDict { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialMarkerArucoDictEXT |
capability
The capability being configured: MarkerTrackingArucoMarker.
Declaration
public XrSpatialCapabilityEXT capability { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialCapabilityEXT |
enabledComponentCount
The count of elements in enabledComponents. Must be greater than 0.
Declaration
public uint enabledComponentCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
enabledComponents
Pointer to an array of components to enable for this capability. Must be non-null.
Declaration
public XrSpatialComponentTypeEXT* enabledComponents { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialComponentTypeEXT* |
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
Remarks
If the runtime supports MarkerTrackingFixedSizeMarkers, you can chain an XrSpatialMarkerSizeEXT to this instance to specify the size of your markers for more accurate pose and size detection.
Likewise, if the runtime supports MarkerTrackingStaticMarkers, you can chain an XrSpatialMarkerStaticOptimizationEXT to specify that your markers aren't expected to move.
type
The XrStructureType of this struct:
SpatialCapabilityConfigurationArucoMarkerEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |