docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IUIHoverInteractor

    Matches the UI Model to the state of the Interactor with support for hover events.

    Inherited Members
    IUIInteractor.UpdateUIModel(ref TrackedDeviceModel)
    IUIInteractor.TryGetUIModel(out TrackedDeviceModel)
    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IUIHoverInteractor : IUIInteractor

    Properties

    uiHoverEntered

    The event that is called when the Interactor begins hovering over a UI element.

    Declaration
    UIHoverEnterEvent uiHoverEntered { get; }
    Property Value
    Type Description
    UIHoverEnterEvent
    Remarks

    The UIHoverEventArgs passed to each listener is only valid while the event is invoked, do not hold a reference to it.

    uiHoverExited

    The event that is called when this Interactor ends hovering over a UI element.

    Declaration
    UIHoverExitEvent uiHoverExited { get; }
    Property Value
    Type Description
    UIHoverExitEvent
    Remarks

    The UIHoverEventArgs passed to each listener is only valid while the event is invoked, do not hold a reference to it.

    Methods

    OnUIHoverEntered(UIHoverEventArgs)

    The XRUIInputModule calls this method when the Interactor begins hovering over a UI element.

    Declaration
    void OnUIHoverEntered(UIHoverEventArgs args)
    Parameters
    Type Name Description
    UIHoverEventArgs args

    Event data containing the UI element that is being hovered over.

    Remarks

    args is only valid during this method call, do not hold a reference to it.

    See Also
    OnUIHoverExited(UIHoverEventArgs)

    OnUIHoverExited(UIHoverEventArgs)

    The XRUIInputModule calls this method when the Interactor ends hovering over a UI element.

    Declaration
    void OnUIHoverExited(UIHoverEventArgs args)
    Parameters
    Type Name Description
    UIHoverEventArgs args

    Event data containing the UI element that is no longer hovered over.

    Remarks

    args is only valid during this method call, do not hold a reference to it.

    See Also
    OnUIHoverEntered(UIHoverEventArgs)
    In This Article
    Back to top
    Copyright © 2025 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)