Struct XrSpatialMarkerStaticOptimizationEXT
Use this struct with MarkerTrackingStaticMarkers to specify that the runtime should assume that all markers are static (unable to move), enabling the runtime to generate more accurate pose and size information for tracked markers in this case.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.NativeTypes
Assembly: Unity.XR.OpenXR.dll
Syntax
public readonly struct XrSpatialMarkerStaticOptimizationEXT
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 SpatialMarkerStaticOptimizationEXT.
Constructors
XrSpatialMarkerStaticOptimizationEXT(bool)
Construct an instance with a null next pointer.
Declaration
public XrSpatialMarkerStaticOptimizationEXT(bool optimizeForStaticMarker)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | optimizeForStaticMarker |
|
XrSpatialMarkerStaticOptimizationEXT(void*, bool)
Construct an instance.
Declaration
public XrSpatialMarkerStaticOptimizationEXT(void* next, bool optimizeForStaticMarker)
Parameters
| Type | Name | Description |
|---|---|---|
| void* | next | The next pointer. |
| bool | optimizeForStaticMarker |
|
Properties
next
null or a pointer to the next structure in a structure chain.
Declaration
public void* next { get; }
Property Value
| Type | Description |
|---|---|
| void* |
optimizeForStaticMarker
Indicates whether all markers in the space aren't expected to move.
Declaration
public uint optimizeForStaticMarker { get; }
Property Value
| Type | Description |
|---|---|
| uint |
type
The XrStructureType of this struct: SpatialMarkerStaticOptimizationEXT.
Declaration
public XrStructureType type { get; }
Property Value
| Type | Description |
|---|---|
| XrStructureType |