Forum Discussion
Stefan.011235
7 months agoHonored Guest
Sticky Grab with Meta SDK
We have recently started developing with the Meta SDK for building our VR projects in Unity, and have struggled finding/ implementing Sticky Grab interaction. Instead of instantly releasing the interactable after releasing the pinch gesture, we want the interactable to continiuously be grabbed until there has been another pinch grab. This will allow the user to not have to keep pinching/ pressing the Grab button on the controller to hold the object in it's virtual hand.
But as stated above we haven't found this to be supplied by Meta so far, and are wondering if somebody else have stumbled against this 'issue' and maybe have found a way to implement this behaviour. Would love to hear your thoughts and ideas, thanks!
2 Replies
Replies have been turned off for this discussion
- Barty98Explorer
I have done this before by using the ForceSelect method on the hand interactor and setting the 'allowManualRelease' parameter to false, this will make it so the player cannot drop the object without calling 'ForceRelease':
_interactorRight.ForceSelect(_handGrabbableRight, false)- naas3005Honored Guest
Hey Barty98 Can you elaborate more on this and if possible give a script or something, Because I want a functionality so that when pressing grip button near a object [ I have controller driven hands in my game] only triggers the grab of my object and when pressing the grip button again it releases the object instead of traditional hold to grab method.
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
- 2 years ago
- 4 years ago