docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    XR anchor subsystem

    The anchor subsystem manages "anchors". Anchors are specific poses in the physical environment that you want to track. The underlying AR framework attempts 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 can be created automatically in response to loading AR data that contains a previously saved anchor. In this case, the anchor might be created and removed in response to external events not direclty under your control.

    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)