docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialComponentMarkerListEXT

    Marker component list structure, used to query component data. Provided by XR_EXT_spatial_marker_tracking.

    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 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 markers. Must be greater than 0.

    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 markers. Must be greater than 0.

    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
    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)