Class ARAnchorManager | AR Foundation | 4.2.10
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ARAnchorManager

    Manages anchors.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    SubsystemLifecycleManager<XRAnchorSubsystem, XRAnchorSubsystemDescriptor, XRAnchorSubsystem.Provider>
    ARTrackableManager<XRAnchorSubsystem, XRAnchorSubsystemDescriptor, XRAnchorSubsystem.Provider, XRAnchor, ARAnchor>
    ARAnchorManager
    Inherited Members
    ARTrackableManager.trackables
    ARTrackableManager.SetTrackablesActive(bool)
    SubsystemLifecycleManager.subsystem
    SubsystemLifecycleManager.descriptor
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren(bool)
    Component.GetComponentInChildren()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren(bool)
    Component.GetComponentsInChildren(bool, List)
    Component.GetComponentsInChildren()
    Component.GetComponentsInChildren(List)
    Component.GetComponentInParent(Type, bool)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent(bool)
    Component.GetComponentInParent()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent(bool)
    Component.GetComponentsInParent(bool, List)
    Component.GetComponentsInParent()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List)
    Component.GetComponents(List)
    Component.GetComponents()
    Component.CompareTag(string)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate(T)
    Object.Instantiate(T, Vector3, Quaternion)
    Object.Instantiate(T, Vector3, Quaternion, Transform)
    Object.Instantiate(T, Transform)
    Object.Instantiate(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType()
    Object.FindObjectsByType(FindObjectsSortMode)
    Object.FindObjectsOfType(bool)
    Object.FindObjectsByType(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType()
    Object.FindObjectOfType(bool)
    Object.FindFirstObjectByType()
    Object.FindAnyObjectByType()
    Object.FindFirstObjectByType(FindObjectsInactive)
    Object.FindAnyObjectByType(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.XR.ARFoundation
    Assembly: solution.dll
    Syntax
    [DefaultExecutionOrder(-2147483647)]
    [DisallowMultipleComponent]
    [RequireComponent(typeof(ARSessionOrigin))]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARAnchorManager.html")]
    public sealed class ARAnchorManager : ARTrackableManager
    Remarks

    Use this component to programmatically add, remove, or query for anchors. Anchors are Poses in the world which will be periodically updated by an AR device as its understanding of the world changes.

    Subscribe to changes (added, updated, and removed) via the anchorsChanged event.

    Properties

    Name Description
    anchorPrefab

    This prefab will be instantiated for each ARAnchor. May be null.

    gameObjectName

    The name to assign to the GameObject instantiated for each ARAnchor.

    Methods

    Name Description
    AddAnchor(Pose)

    Attempts to add an ARAnchor with the given Pose.

    AttachAnchor(ARPlane, Pose)

    Attempts to create a new anchor that is attached to an existing ARPlane.

    GetAnchor(TrackableId)

    Gets the ARAnchor with given trackableId, or null if it does not exist.

    GetPrefab()

    Get the prefab to instantiate for each ARAnchor.

    OnTrackablesChanged(List, List, List)

    Invoked when the base class detects trackable changes.

    RemoveAnchor(ARAnchor)

    Attempts to remove an ARAnchor.

    Events

    Name Description
    anchorsChanged

    Invoked once per frame to communicate changes to anchors, including new anchors, the update of existing anchors, and the removal of previously existing anchors.

    See Also

    ARTrackableManager
    In This Article
    Back to top
    Copyright © 2024 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)