Hand Pinch action not working (OpenXR)

Unity Editor version: 2022.3.22f1
ML2 OS version: 1.6.0
Unity SDK version: 2.1.0
Host OS: Windows
OpenXR: 1.10.0
XR Interaction Toolkit: 3.0.1

I've created a new Unity project.
Imported the packages: ML, OpenXR, XR Interaction Toolkit, and Samples.

Every interaction works just fine in the sample scenes, except pinching.
I can't grab objects or do other pinch-related actions.
There were no error messages either.

Upon pinching, the hovered object and the fingers get a blue highlight, and the pinch indicator appears, but nothing happens when I move my hands.

Am I missing something? Should it work?

Thanks for the help.


SOLVED

The problem lies within the provided XRI Default Input Actions asset of the XRI's Start Assets sample.

image

You have to add the OpenXR pinchValue binding to the XRI Left Interaction's (and XRI Right Interaction's) Select Value action:

{LeftHand}/pinchValue
({RightHand}/pinchValue)

image

Save the asset and pinching will work again.

And unfortunately, you can't just use the MagicLeapOpenXRInput asset with the XRI because all the XRI actions will break.

(Note: XRI = XR Interaction Toolkit)

2 Likes

Thank you for sharing your findings with the community.