VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@76258c00be3e/Documentation~/interactor-events.md
2025-08-20 11:12:05 +03:00

1.8 KiB

uid
xri-interactor-events

Interactor Events

These are events that can be hooked into in the editor the same way you would respond to a UI button press. These apply to Interactors - objects that can interact with Interactables.

The UI Hover Entered and UI Hover Exited events are not available on all interactor components. Only those interactors that implement IUIHoverInteractor and enable UI Interaction with the XR UI Input Module, such as XR Poke Interactor, will have these events.

Property Description
Hover Entered The event that is called when this Interactor begins hovering over an Interactable.
The HoverEnterEventArgs passed to each listener is only valid while the event is invoked, don't hold a reference to it.
Hover Exited The event that is called when this Interactor ends hovering over an Interactable.
The HoverExitEventArgs passed to each listener is only valid while the event is invoked, don't hold a reference to it.
Select Entered The event that is called when this Interactor begins selecting an Interactable.
The SelectEnterEventArgs passed to each listener is only valid while the event is invoked, don't hold a reference to it.
Select Exited The event that is called when this Interactor ends selecting an Interactable.
The SelectExitEventArgs passed to each listener is only valid while the event is invoked, don't hold a reference to it.
UI Hover Entered Event Event triggered when a UI element is hovered over by this interactor.
UI Hover Exited Event Event triggered when a UI element is no longer hovered over by this interactor.