I'm developing a Unity project using the Meta XR Interactions SDK. My grabbable objects include the following scripts:
Grabbable.cs
GrabInteractible.cs
HandGrabInteractible.cs
In my scene, I have three cubes (red, blue, and green), and I need to create a script that prints a message to the console when an object is grabbed. For example:
"The red Cube is being grabbed!"
I would also like to detect when the object is released.
How can I determine when an object is grabbed or released using the Meta XR Interactions SDK? Are there specific events or properties exposed by these components that I can subscribe to in order to receive this information?
Any guidance would be greatly appreciated. Thank you!