Help! I have spent a great deal of time trying to reliably get access to the Vive Grip buttons. Can anybody tell me a reliable way to attach the Grip buttons to a script so that I can attach my necessary routines to them? All the online code I have found has either been outdated or outright incorrect and I am about to pull all my hair out. Any help would be greatly appreciated. Alexa
Hey Alexa, this is how it got it working. Just at this to the Update() method in the script you are using to handle the controller. Code (CSharp): void Update() { var rightHandDevices = new List<UnityEngine.XR.InputDevice>(); UnityEngine.XR.InputDevices.GetDevicesAtXRNode(UnityEngine.XR.XRNode.RightHand, rightHandDevices); if (rightHandDevices.Count > 0) { var device = rightHandDevices[0]; bool GripValue; if (device.TryGetFeatureValue(UnityEngine.XR.CommonUsages.gripButton, out GripValue) && GripValue) { Debug.Log("Right grip button is pressed"); } } } Hope that helps! Arron