cancel
Showing results for 
Search instead for 
Did you mean: 

Hel with interaction objects

RichardOmn13
Honored Guest

I am developing in unity a game in which I implement the Meta XR All-in-One SDK and to an object the building block grab interaction because I want it to disappear when I grab it but I can't find how to do it, could someone help me?

1 REPLY 1

LucaMefisto
Explorer

Hi Richard,
 
This is how I would do it without writing any code:
- If your object has several GrabInteractables, I would place an InteractableGroup at the root and reference all of them with it.
- Then I will add an InteractableUnityEventWrapper, reference the InteractableGroup, and on the UnityEvent WhenSelect disable the GameObject.

Alternatively and if you don't mind writing a small script, I would rather reference directly the Grabbable and listen to the amount of Select Points. As soon as it is > 0 disable the GameObject.

I hope this helps you solve your problem