docs.unity3d.com

    XR anchor subsystem

    The anchor subsystem manages "anchors". Anchors are specific poses in the physical environment that you are interested in tracking. The underlying AR framework will attempt to track that specific pose as long as the anchor exists.

    Once you create an anchor, it cannot be moved; instead, its pose is updated automatically by the underlying AR framework.

    The anchor subsystem is a type of tracking subsystem and follows the same GetChanges pattern to inform the user about changes to the state of anchors. Its trackable is XRAnchor.

    Anchor lifecycle

    Typically, anchors are created and destroyed programmatically through explicit calls to TryAddAnchor and TryRemoveAnchor.

    On some platforms, anchors may be created automatically in response to loading AR data that contains a previously saved anchor. In this case, the anchor may be created and removed in response to external events not direclty under your control.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023