Search Unity

Bug Can't get PlayerInput to work

Discussion in 'Input System' started by wowsuchjmorhart, Aug 2, 2020.

  1. wowsuchjmorhart

    wowsuchjmorhart

    Joined:
    Aug 2, 2020
    Posts:
    9
    I'm not sure if I'm missing something here, but I can't get the PlayerInput component to work in the new InputSystem. I've attached a simple test project, but the quick explanation is:

    1) An InputActions asset exists and is hooked up to my PlayerInput component in the TestScene
    2) A TestAction bound to "<Keyboard> anyKey" is present on my InputActions asset
    3) The OnTestAction UnityEvent is hooked up to my TestInputBehaviour.OnTestAction() method
    4) The TestInputBehaviour and PlayerInput components are both on the Input game object

    As far as I know, this should be enough to get up and running, but it doesn't seem to work. I also reported a bug here: https://fogbugz.unity3d.com/default.asp?1267683_7p1kqpnh9gnl7fvb

    Any help is appreciated! Thanks!
     

    Attached Files: