Interaction Manager¶
The Interaction Manager is the bridge between the Interactables/Grabbables and the Interactors; it handles all the interactions between the Interactors and the Interactables that are registered to the same Interaction Manager.
Warning
You can have multiple Interaction Managers in one scene. If an Interactable is not in the same Interaction Manager as the Interactor, they will not interact.
Interaction Manager Event types¶
Here is a list of the events of the Interaction Manager:
Events |
Explanation |
---|---|
Register Manager Enter |
This event is called when the Manager is registered in the Interaction Manager List. |
Deregister Manager Exit |
This event is called when the Manager is deregistered from the Interaction Manager List. |
Register Interactor Enter |
This event is called when an Interactor is registered to the Interaction Manager. |
Deregister Interactor Enter |
This event is called when an Interactor is deregistered from the Interaction Manager. |
Hover Entered |
This event is called when an Interactable of the Interaction Manager starts being hovered over. |
Hover Exited |
This event is called when an Interactable of the Interaction Manager stops being hovered over. |
Select Entered |
This event is called when an Interactable of the Interaction Manager starts being selected over. |
Select Exited |
This event is called when an Interactable of the Interaction Manager stops being selected over. |
Activate Entered |
This event is called when an Interactable of the Interaction Manager starts being activated. |
Activate Exited |
This event is called when an Interactable of the Interaction Manager stops being activated. |
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 .