Hi everyone! I am looking to get Hover events working for the UI when the users hover over a button for a bit using the Ray Interactor. If anyone has a way to work this it would be appreciated.
On the same game object you have your Button on, you can add an Event Trigger component. After adding this component,expand it and click the “Add New Event Type”. You will need to add the OnPointerEnter event. Now you can use that event like any other event in the inspector. This event will trigger when a Pointer enters the button object, which in better words is the exact same as when your XRRayInteractor will “start hovering” the UI. Use the OnPointerExit as the “end hovering” event if that is desirable. This component has a bunch of other events to play with also.
1 Like
And how would you know which hand hovered the UI?