docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialAnchorParentANDROID

    Chains into next to specify a parent spatial entity when creating a bound anchor via xrCreateSpatialAnchorEXT. Provided by XR_ANDROID_spatial_entity_bound_anchor.

    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 XrSpatialAnchorParentANDROID
    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 SpatialAnchorParentANDROID.

    Constructors

    XrSpatialAnchorParentANDROID(ulong)

    Initializes a new instance of XrSpatialAnchorParentANDROID with next set to null.

    Declaration
    public XrSpatialAnchorParentANDROID(ulong parentId)
    Parameters
    Type Name Description
    ulong parentId

    The entity ID of the spatial entity to attach the anchor to.

    XrSpatialAnchorParentANDROID(void*, ulong)

    Initializes a new instance of XrSpatialAnchorParentANDROID.

    Declaration
    public XrSpatialAnchorParentANDROID(void* next, ulong parentId)
    Parameters
    Type Name Description
    void* next

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

    ulong parentId

    The entity ID of the spatial entity to attach the anchor to.

    Properties

    next

    null or a pointer to the next structure in a structure chain. No valid next structures are defined.

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

    parentId

    The XrSpatialEntityIdEXT of the spatial entity to attach the anchor to.

    Declaration
    public ulong parentId { get; }
    Property Value
    Type Description
    ulong

    type

    The XrStructureType of this struct: SpatialAnchorParentANDROID.

    Declaration
    public XrStructureType type { get; }
    Property Value
    Type Description
    XrStructureType
    In This Article
    Back to top
    Copyright © 2026 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)