Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RichardOmn13's avatar
RichardOmn13
Honored Guest
2 years ago

Hel with interaction objects

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

Replies have been turned off for this discussion
  • 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