docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor XRAnchor

    XRAnchor(TrackableId, Pose, TrackingState, IntPtr)

    Constructs the session-relative data for an anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly.

    Declaration
    public XRAnchor(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId associated with this anchor.

    Pose pose

    The Pose, in session space, of the anchor.

    TrackingState trackingState

    The TrackingState of the anchor.

    IntPtr nativePtr

    A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific.

    XRAnchor(TrackableId, Pose, TrackingState, IntPtr, Guid)

    Constructs the session-relative data for anchor. This is typically provided by an implementation of the XRAnchorSubsystem and not invoked directly.

    Declaration
    public XRAnchor(TrackableId trackableId, Pose pose, TrackingState trackingState, IntPtr nativePtr, Guid sessionId)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId associated with this anchor.

    Pose pose

    The Pose, in session space, of the anchor.

    TrackingState trackingState

    The TrackingState of the anchor.

    IntPtr nativePtr

    A native pointer associated with the anchor. The data pointed to by this pointer is implementation-specific.

    Guid sessionId

    The session from which this anchor originated.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023