docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryAddAnchor

    TryAddAnchor(Pose, out XRAnchor)

    Attempts to create a new anchor at the provided pose.

    Declaration
    public bool TryAddAnchor(Pose pose, out XRAnchor anchor)
    Parameters
    Type Name Description
    Pose pose

    The pose, in session space, of the new anchor.

    XRAnchor anchor

    The new anchor. Only valid if this method returns true.

    Returns
    Type Description
    bool

    true if the output 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