docs.unity3d.com
    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(TrackedDeviceModel)
    IUIInteractor.TryGetUIModel(TrackedDeviceModel)
    Namespace: UnityEngine.XR.Interaction.Toolkit.UI
    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)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023