Skip to main content
New Participant
September 6, 2024

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?

    This topic has been closed for replies.

    1 reply

    Meta Employee
    September 13, 2024

    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