docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialComponentParentListEXT

    Parent component list structure, used to query component data. Provided by XR_EXT_spatial_entity.

    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 XrSpatialComponentParentListEXT
    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 SpatialComponentParentListEXT.

    Constructors

    XrSpatialComponentParentListEXT(uint, ulong*)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialComponentParentListEXT(uint parentCount, ulong* parents)
    Parameters
    Type Name Description
    uint parentCount

    The count of elements in parents.

    ulong* parents

    Pointer to an array of parent components.

    XrSpatialComponentParentListEXT(void*, uint, ulong*)

    Construct an instance.

    Declaration
    public XrSpatialComponentParentListEXT(void* next, uint parentCount, ulong* parents)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    uint parentCount

    The count of elements in parents.

    ulong* parents

    Pointer to an array of parent components.

    XrSpatialComponentParentListEXT(void*, NativeArray<ulong>)

    Construct an instance from a native array.

    Declaration
    public XrSpatialComponentParentListEXT(void* next, NativeArray<ulong> parents)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<ulong> parents

    Native array of parent components. Must be non-empty.

    XrSpatialComponentParentListEXT(void*, ReadOnly)

    Construct an instance from a read-only native array.

    Declaration
    public XrSpatialComponentParentListEXT(void* next, NativeArray<ulong>.ReadOnly parents)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    NativeArray<ulong>.ReadOnly parents

    Read-only native array of parent components. Must be non-empty.

    XrSpatialComponentParentListEXT(NativeArray<ulong>)

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

    Declaration
    public XrSpatialComponentParentListEXT(NativeArray<ulong> parents)
    Parameters
    Type Name Description
    NativeArray<ulong> parents

    Native array of parent components. Must be non-empty.

    XrSpatialComponentParentListEXT(ReadOnly)

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

    Declaration
    public XrSpatialComponentParentListEXT(NativeArray<ulong>.ReadOnly parents)
    Parameters
    Type Name Description
    NativeArray<ulong>.ReadOnly parents

    Read-only native array of parent components. Must be non-empty.

    Properties

    next

    null or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or EXT_spatial_entity.

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

    parentCount

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

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

    parents

    Pointer to an array of parent components. Must be non-null.

    Declaration
    public ulong* parents { get; }
    Property Value
    Type Description
    ulong*

    type

    The XrStructureType of this struct: SpatialComponentParentListEXT.

    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)