Struct XrSpatialComponentMarkerListEXT
Marker component list structure, used to query component data. Provided by XR_EXT_spatial_marker_tracking.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialComponentMarkerListEXT
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 SpatialComponentMarkerListEXT.
Constructors
XrSpatialComponentMarkerListEXT(uint, XrSpatialMarkerDataEXT*)
Construct an instance with a null next pointer.
Declaration
public XrSpatialComponentMarkerListEXT(uint markerCount, XrSpatialMarkerDataEXT* markers)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | markerCount | The count of elements in |
| XrSpatialMarkerDataEXT* | markers | Pointer to an array of marker components. Must be non-null. |
XrSpatialComponentMarkerListEXT(void*, uint, XrSpatialMarkerDataEXT*)
Construct an instance.
Declaration
public XrSpatialComponentMarkerListEXT(void* next, uint markerCount, XrSpatialMarkerDataEXT* markers)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| uint | markerCount | The count of elements in |
| XrSpatialMarkerDataEXT* | markers | Pointer to an array of marker components. Must be non-null. |
XrSpatialComponentMarkerListEXT(void*, NativeArray<XrSpatialMarkerDataEXT>)
Construct an instance from a native array.
Declaration
public XrSpatialComponentMarkerListEXT(void* next, NativeArray<XrSpatialMarkerDataEXT> markers)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialMarkerDataEXT> | markers | Native array of marker components. Must be non-empty. |
XrSpatialComponentMarkerListEXT(void*, ReadOnly)
Construct an instance from a read-only native array.
Declaration
public XrSpatialComponentMarkerListEXT(void* next, NativeArray<XrSpatialMarkerDataEXT>.ReadOnly markers)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| NativeArray<XrSpatialMarkerDataEXT>.ReadOnly | markers | Read-only native array of marker components. Must be non-empty. |
XrSpatialComponentMarkerListEXT(NativeArray<XrSpatialMarkerDataEXT>)
Construct an instance with a null next pointer from a native array.
Declaration
public XrSpatialComponentMarkerListEXT(NativeArray<XrSpatialMarkerDataEXT> markers)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialMarkerDataEXT> | markers | Native array of marker components. Must be non-empty. |
XrSpatialComponentMarkerListEXT(ReadOnly)
Construct an instance with a null next pointer from a read-only native array.
Declaration
public XrSpatialComponentMarkerListEXT(NativeArray<XrSpatialMarkerDataEXT>.ReadOnly markers)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeArray<XrSpatialMarkerDataEXT>.ReadOnly | markers | Read-only native array of marker components. Must be non-empty. |
Properties
markerCount
The count of elements in markers. Must be greater than 0.
Declaration
public uint markerCount { get; }
Property Value
| Type | Description |
|---|---|
| uint |
markers
Pointer to an array of marker components. Must be non-null.
Declaration
public XrSpatialMarkerDataEXT* markers { get; }
Property Value
| Type | Description |
|---|---|
| XrSpatialMarkerDataEXT* |
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
type
The XrStructureType of this struct: SpatialComponentMarkerListEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |