Events for Interactables¶
The Events of the grabbable component has some functions that are called depending on the way the Interactable is interacted at that specific moment in time by the Interactor.
Event Types for Interactables¶
This is the complete list of events:
Note
In this description, the hand is the Interactor, and the alcohol spray is the Interactable (has grabbable component).
Event Name |
Explanation |
---|---|
Hover Entered |
Called once when the hand starts hovering over the alcohol spray, and you can see its outline. |
Hover Exited |
Called once when the hand stops hovering over the alcohol spray, and you can no longer see its outline. |
Select Entered |
Called once when the hand starts selecting the alcohol spray, and you can see its outline. |
Select Exited |
Called once when the hand stops selecting the alcohol spray, meaning it has stopped holding it. |
Activate Entered |
Called once at the start when the hand has activated the alcohol spray; in this case, it has pressed the alcohol spray’s button. |
Activate Exited |
Called once when the hand has stopped activating the alcohol spray; in this case, it has stopped pressing the alcohol spray’s button. |
Note
Events work the same way for Interactors, Interactables and Interaction Manager.
For a tutorial that tests the events in-depth, go to How to use Events in Grabbable component.