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 PlayerInput overrides ActionBasedController for XR Rigs

Discussion in 'XR Interaction Toolkit and Input' started by majorbatman, Feb 14, 2021.

  1. majorbatman

    majorbatman

    Joined:
    Feb 20, 2019
    Posts:
    5
    Using XR Interaction Toolit 1.0 preview 2 with the new input manager.

    If you add the Input Action Manager, Continuous Move Provider and Character Controller Driver to the XR Room Action Rig. And then use the XRI Default Input Actions with the INput action manager, you can use it to move your character around using the control sticks.

    Now if you go into the Default Input Actions and add another Action, say OpenMenu and bind it to the menu button.

    If you then Add a Player Input Component somewhere and use the Default Input Actions (InputACtionAsset), and invoke the new OpenMenu. When you go in the game, the open menu will work, but the movement no longer does.

    The workaround is to create a separate Input Actions, and use that on the Player Input.

    So I believe this is a bug, or perhaps not working as intended. The default controls should still work even if you also use the Player input component.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,816
    Does indeed sound like a bug! Could you, if you've not already, file a bug report for us?