Grab an object only while pressing and holding a controller button in VRTK v4
To get rid of the grabbed object after the controller button is released:
- Find the desired button action in “Scene/VRTK Setup/InputMappings/UnityXR.OpenVR.LeftController”
- Add a item for the “Deactivated” event
- Drag “LeftInteractor” from Hierarchy to Inspector to fill in “None (Object)”
- Choose “InteractorFacade/Ungrab ()” on the right
Thereafter you may repeat 1–4 for the right controller to achieve the same effect.