Give us as much detail as possible regarding the issue you're experiencing:
I am trying to use tracked hand positions to drive my XRi toolkit interactors, as per other platforms. I set up the following test -
- I added four cubes to the 'Hands' test scene in the latest Magic Leap samples project, and added a 'Tracked Pose Driver (Input System)' component to each. I wanted one each to track the left and right hands' pinch and aim transforms, which on other platforms are used for aiming and grabbing.
- Since the 'Tracked Pose Driver' component expects separate position and rotation inputs, but the ML pose and pinch actions in 'MagicLeapInput.inputactions' are configured as 'pose' type, I added separate position and rotation actions to the left and right hand pinch and aim actions, as per the image -
- Then I assigned the new input actions to each cube's Tracked Pose Driver, as per the image (right aim transform shown only) -
After deploying and running the app on device, I expect to see coloured cubes tracking the pinch and aim transforms of each hand. Instead, I can see the cubes tracking a maximum of one hand, with only the pinch transform tracking position and rotation, and the aim transform only tracking position. I also see a lot of errors in the log, and after a few seconds the cubes stop tracking altogether. It is unclear to me what is happening but it's not what I am expecting.
Unity Editor version: 2022.3.30f1
ML2 OS version: 1.7.0
Unity SDK version: 0.22.0
Host OS: (Windows/MacOS) MacOS