docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryAttachAnchor

    TryAttachAnchor(TrackableId, Pose, out XRAnchor)

    Should create a new anchor "attached" to the trackable with id attachedToId. The behavior of the anchor depends on the type of trackable to which this anchor is attached and might be implementation-defined.

    Declaration
    public virtual bool TryAttachAnchor(TrackableId attachedToId, Pose pose, out XRAnchor anchor)
    Parameters
    Type Name Description
    TrackableId attachedToId

    The id of the trackable to which to attach.

    Pose pose

    The pose, in session space, of the anchor to create.

    XRAnchor anchor

    The new anchor. Must be valid only if this method returns true.

    Returns
    Type Description
    bool

    true if the new anchor was added, otherwise false.

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