Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Bug Trouble with InputActions and XR on new Input System when using legacy XR support

Discussion in 'AR/VR (XR) Discussion' started by drakfyre, Jun 4, 2020.

  1. drakfyre

    drakfyre

    Joined:
    Oct 6, 2011
    Posts:
    6
    Here's the project in question:
    https://github.com/PushyPixels/CookingWithVR/archive/InputActionBugs.zip

    Open Scenes/BaseVRProject

    The VRPlayer GameObject in the Hierarchy has an attached script called ArtificialVRMovement. This script should cause the player to move when the left thumbstick is moved on my device (Oculus Touch controller) but ReadValue keeps reporting Vector2.zero. I enable the InputAction in OnEnable.

    This problem occurs even if I use specific bindings for my controller. I believe that there's a bug here somewhere.

    Also, another strange bug: I have Tracked Pose Drivers on the LeftHand and RightHand GameObjects. If I change the binding in ArtificialVRMovement at runtime for some reason the tracking on both the Tracked Pose Drivers stops completely.

    Thank you very much for your help in troubleshooting this.
     
unityunity