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

    Show / Hide Table of Contents

    Class ARRaycastManager

    Manages an XRRaycastSubsystem, exposing raycast functionality in AR Foundation. Use this component to raycast against trackables (that is, detected features in the physical environment) when they do not have a presence in the Physics world.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    SubsystemLifecycleManager<XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider>
    ARTrackableManager<XRRaycastSubsystem, XRRaycastSubsystemDescriptor, XRRaycastSubsystem.Provider, XRRaycast, ARRaycast>
    ARRaycastManager
    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.ARRaycastManager.html")]
    public sealed class ARRaycastManager : ARTrackableManager

    Properties

    Name Description
    gameObjectName

    The name of the GameObject for each instantiated ARRaycast.

    raycastPrefab

    If not null, this prefab will be instantiated for each ARRaycast.

    Methods

    Name Description
    AddRaycast(Vector2, float)

    Creates an ARRaycast that updates automatically. ARRaycasts will continue to update until you remove them with RemoveRaycast(ARRaycast) or disable this component.

    GetPrefab()

    Gets the Prefab that should be instantiated for each ARRaycast. Can be null.

    OnAfterSetSessionRelativeData(ARRaycast, XRRaycast)

    Invoked just after a ARRaycast has been updated.

    OnAfterStart()

    Invoked just after the subsystem has been Started. Used to set raycast delegates internally.

    Raycast(Ray, List, TrackableType)

    Cast a Ray against trackables, that is, detected features such as planes.

    Raycast(Vector2, List, TrackableType)

    Cast a ray from a point in screen space against trackables, that is, detected features such as planes.

    RemoveRaycast(ARRaycast)

    Removes an existing ARRaycast.

    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)