docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsHovered

    IsHovered(IXRHoverInteractor)

    Determines whether this Interactable is currently being hovered by the Interactor.

    Declaration
    public bool IsHovered(IXRHoverInteractor interactor)
    Parameters
    Type Name Description
    IXRHoverInteractor interactor

    Interactor to check.

    Returns
    Type Description
    bool

    Returns true if this Interactable is currently being hovered by the Interactor. Otherwise, returns .

    Remarks

    In other words, returns whether interactorsHovering contains interactor.

    See Also
    interactorsHovering

    IsHovered(IXRInteractor)

    Determines whether this Interactable is currently being hovered by the Interactor.

    Declaration
    protected bool IsHovered(IXRInteractor interactor)
    Parameters
    Type Name Description
    IXRInteractor interactor

    Interactor to check.

    Returns
    Type Description
    bool

    Returns true if this Interactable is currently being hovered by the Interactor. Otherwise, returns .

    Remarks

    In other words, returns whether interactorsHovering contains interactor.

    See Also
    interactorsHovering
    IsHovered(IXRHoverInteractor)
    In This Article
    Back to top
    Copyright © 2023 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)