So the new Open XR plug-in does not pick up the input of my Oculus Quest 2 controllers. It only responds to the grab function. The trigger and buttons do not work. Which makes interacting with the environment a mess. When I play the scene both the quest and the steam VR app open up. I’ve been breaking my head over this issue for a few days now and can’t seem to find the solution online.
It would help with some code and what version of Unity you are using, but here is my code that is working for me in Unity 2020.1.13f1.
UnityEngine.XR.InputDevice handRDevice = InputDevices.GetDeviceAtXRNode(XRNode.RightHand); UnityEngine.XR.InputDevice handLDevice = InputDevices.GetDeviceAtXRNode(XRNode.LeftHand); bool triggerRSupported = handRDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.trigger, out float triggerR); bool button1RSupported = handRDevice.TryGetFeatureValue(UnityEngine.XR.CommonUsages.primaryButton, out bool button1R); ...
I found the problem don’t use steam VR while using the unity editor with oculus Quest it will change your input.