docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RaycasterManager

    Keeps track of the BaseRaycasters that the EventSystem raycasts with.

    Inheritance
    object
    RaycasterManager
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.EventSystems
    Assembly: UnityEngine.UI.dll
    Syntax
    public static class RaycasterManager
    Remarks

    A BaseRaycaster registers itself when it becomes active and unregisters itself when it becomes inactive. RaycastAll(PointerEventData, List<RaycastResult>) raycasts with every registered raycaster.

    Methods

    GetRaycasters()

    List of BaseRaycasters that have been registered.

    Declaration
    public static List<BaseRaycaster> GetRaycasters()
    Returns
    Type Description
    List<BaseRaycaster>

    The registered raycasters.

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