Struct XrSpatialMarkerSizeEXT
Use this struct with MarkerTrackingFixedSizeMarkers to specify a pre-defined size for your markers, enabling the runtime to generate more accurate pose and size information for tracked markers.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialMarkerSizeEXT
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 SpatialMarkerSizeEXT.
Constructors
XrSpatialMarkerSizeEXT(float)
Construct an instance with a null
next pointer.
Declaration
public XrSpatialMarkerSizeEXT(float markerSideLength)
Parameters
Type | Name | Description |
---|---|---|
float | markerSideLength | The length in meters of all sides of all markers. |
XrSpatialMarkerSizeEXT(void*, float)
Construct an instance.
Declaration
public XrSpatialMarkerSizeEXT(void* next, float markerSideLength)
Parameters
Type | Name | Description |
---|---|---|
void* | next | The next pointer. |
float | markerSideLength | The length in meters of all sides of all markers. |
Properties
markerSideLength
The length in meters of all sides of all markers.
(All marker types provided by XR_EXT_spatial_marker_tracking
are geometric squares.)
Declaration
public float markerSideLength { get; }
Property Value
Type | Description |
---|---|
float |
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: SpatialMarkerSizeEXT.
Declaration
public XrStructureType type { get; }
Property Value
Type | Description |
---|---|
XrStructureType |