Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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.