docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialComponentPolygon2DListEXT

    Polygon 2D component list structure, used to query component data. Provided by XR_EXT_spatial_plane_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 XrSpatialComponentPolygon2DListEXT

    Constructors

    XrSpatialComponentPolygon2DListEXT(uint, XrSpatialPolygon2DDataEXT*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(uint polygonCount, XrSpatialPolygon2DDataEXT* polygons)
    Parameters
    Type Name Description
    uint polygonCount

    The count of elements in polygons. Must be greater than 0.

    XrSpatialPolygon2DDataEXT* polygons

    Pointer to an array of polygon 2D components. Must be non-null.

    XrSpatialComponentPolygon2DListEXT(void*, uint, XrSpatialPolygon2DDataEXT*)

    Construct an instance.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(void* next, uint polygonCount, XrSpatialPolygon2DDataEXT* polygons)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    uint polygonCount

    The count of elements in polygons. Must be greater than 0.

    XrSpatialPolygon2DDataEXT* polygons

    Pointer to an array of polygon 2D components. Must be non-null.

    XrSpatialComponentPolygon2DListEXT(void*, NativeArray<XrSpatialPolygon2DDataEXT>)

    Construct an instance from a native array.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(void* next, NativeArray<XrSpatialPolygon2DDataEXT> polygons)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<XrSpatialPolygon2DDataEXT> polygons

    Native array of polygon 2D components. Must be non-null.

    XrSpatialComponentPolygon2DListEXT(void*, ReadOnly)

    Construct an instance from a read-only native array.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(void* next, NativeArray<XrSpatialPolygon2DDataEXT>.ReadOnly polygons)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<XrSpatialPolygon2DDataEXT>.ReadOnly polygons

    Read-only native array of polygon 2D components. Must be non-null.

    XrSpatialComponentPolygon2DListEXT(NativeArray<XrSpatialPolygon2DDataEXT>)

    Construct an instance with a null next pointer from a native array.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(NativeArray<XrSpatialPolygon2DDataEXT> polygons)
    Parameters
    Type Name Description
    NativeArray<XrSpatialPolygon2DDataEXT> polygons

    Native array of polygon 2D components. Must be non-null.

    XrSpatialComponentPolygon2DListEXT(ReadOnly)

    Construct an instance with a null next pointer from a native array.

    Declaration
    public XrSpatialComponentPolygon2DListEXT(NativeArray<XrSpatialPolygon2DDataEXT>.ReadOnly polygons)
    Parameters
    Type Name Description
    NativeArray<XrSpatialPolygon2DDataEXT>.ReadOnly polygons

    Read-only native array of polygon 2D components. Must be non-null.

    Properties

    next

    null or a pointer to the next structure in a structure chain.

    Declaration
    public void* next { get; }
    Property Value
    Type Description
    void*

    polygonCount

    The count of elements in polygons. Must be greater than 0.

    Declaration
    public uint polygonCount { get; }
    Property Value
    Type Description
    uint

    polygons

    Pointer to an array of polygon 2D components. Must be non-null.

    Declaration
    public XrSpatialPolygon2DDataEXT* polygons { get; }
    Property Value
    Type Description
    XrSpatialPolygon2DDataEXT*

    type

    The XrStructureType of this struct: SpatialComponentPolygon2DListEXT.

    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)