docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsHoveringOverUI

    IsHoveringOverUI(IUsesIsHoveringOverUI, Transform)

    Returns whether the specified ray origin is hovering over a UI element

    Declaration
    public static bool IsHoveringOverUI(this IUsesIsHoveringOverUI user, Transform rayOrigin)
    Parameters
    Type Name Description
    IUsesIsHoveringOverUI user

    The functionality user

    Transform rayOrigin

    The rayOrigin that is being checked

    Returns
    Type Description
    bool

    Whether the ray is hovering over UI

    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)