docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XrSpatialAnchorCreateInfoEXT

    Creation info struct used by xrCreateSpatialAnchorEXT(ulong, in XrSpatialAnchorCreateInfoEXT, out ulong, out ulong). Provided by XR_EXT_spatial_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 XrSpatialAnchorCreateInfoEXT
    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 SpatialAnchorCreateInfoEXT.

    Constructors

    XrSpatialAnchorCreateInfoEXT(ulong, long, Vector3, Quaternion)

    Construct an instance with a null next pointer from Unity coordinates.

    Declaration
    public XrSpatialAnchorCreateInfoEXT(ulong baseSpace, long time, Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    ulong baseSpace

    The base space.

    long time

    The time.

    Vector3 position

    The position, in Unity coordinates relative to your XR Origin.

    Quaternion rotation

    The rotation, in Unity coordinates relative to your XR Origin.

    XrSpatialAnchorCreateInfoEXT(ulong, long, XrPosef)

    Construct an instance with a null next pointer.

    Declaration
    public XrSpatialAnchorCreateInfoEXT(ulong baseSpace, long time, XrPosef pose)
    Parameters
    Type Name Description
    ulong baseSpace

    The base space.

    long time

    The time.

    XrPosef pose

    The pose, in OpenXR coordinates.

    XrSpatialAnchorCreateInfoEXT(void*, ulong, long, Vector3, Quaternion)

    Construct an instance from Unity coordinates.

    Declaration
    public XrSpatialAnchorCreateInfoEXT(void* next, ulong baseSpace, long time, Vector3 position, Quaternion rotation)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    ulong baseSpace

    The base space.

    long time

    The time.

    Vector3 position

    The position, in Unity coordinates relative to your XR Origin.

    Quaternion rotation

    The rotation, in Unity coordinates relative to your XR Origin.

    XrSpatialAnchorCreateInfoEXT(void*, ulong, long, XrPosef)

    Construct an instance.

    Declaration
    public XrSpatialAnchorCreateInfoEXT(void* next, ulong baseSpace, long time, XrPosef pose)
    Parameters
    Type Name Description
    void* next

    The next pointer.

    ulong baseSpace

    The base space.

    long time

    The time.

    XrPosef pose

    The pose, in OpenXR coordinates.

    Properties

    baseSpace

    The XrSpace in which pose is applied.

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

    next

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

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

    pose

    The location for the anchor entity, in OpenXR coordinate space.

    Declaration
    public XrPosef pose { get; }
    Property Value
    Type Description
    XrPosef

    time

    The XrTime at which baseSpace is located (and pose is applied).

    Declaration
    public long time { get; }
    Property Value
    Type Description
    long

    type

    The XrStructureType of this struct: SpatialAnchorCreateInfoEXT.

    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)