Forum Discussion
RichardOmn13
2 years agoHonored Guest
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
- LucaMefistoMeta Employee
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago