docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method IsHovering

    IsHovering(IXRHoverInteractable)

    Determines whether this Interactor is currently hovering the Interactable.

    Declaration
    public bool IsHovering(IXRHoverInteractable interactable)
    Parameters
    Type Name Description
    IXRHoverInteractable interactable

    Interactable to check.

    Returns
    Type Description
    bool

    Returns true if this Interactor is currently hovering the Interactable. Otherwise, returns .

    Implements
    IXRHoverInteractor.IsHovering(IXRHoverInteractable)
    Remarks

    In other words, returns whether interactablesHovered contains interactable.

    See Also
    interactablesHovered

    IsHovering(IXRInteractable)

    Determines whether this Interactor is currently hovering the Interactable.

    Declaration
    protected bool IsHovering(IXRInteractable interactable)
    Parameters
    Type Name Description
    IXRInteractable interactable

    Interactable to check.

    Returns
    Type Description
    bool

    Returns true if this Interactor is currently hovering the Interactable. Otherwise, returns .

    Remarks

    In other words, returns whether interactablesHovered contains interactable.

    See Also
    interactablesHovered
    IsHovering(IXRHoverInteractable)
    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)