Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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