docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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

    true if all markers in the space aren't expected to move. Otherwise, false.

    XrSpatialMarkerStaticOptimizationEXT(void*, bool)

    Construct an instance.

    Declaration
    public XrSpatialMarkerStaticOptimizationEXT(void* next, bool optimizeForStaticMarker)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    bool optimizeForStaticMarker

    true if all markers in the space aren't expected to move. Otherwise, false.

    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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)