Interface IUIHoverInteractor
Matches the UI Model to the state of the Interactor with support for hover events.
Inherited Members
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 |
---|---|
UIHover |
Remarks
The UIHover
uiHoverExited
The event that is called when this Interactor ends hovering over a UI element.
Declaration
UIHoverExitEvent uiHoverExited { get; }
Property Value
Type | Description |
---|---|
UIHover |
Remarks
The UIHover
Methods
OnUIHoverEntered(UIHoverEventArgs)
The XRUIInput
Declaration
void OnUIHoverEntered(UIHoverEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
UIHover |
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)
The XRUIInput
Declaration
void OnUIHoverExited(UIHoverEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
UIHover |
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.