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.

Bug Can't get PlayerInput to work

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

  1. wowsuchjmorhart


    Aug 2, 2020
    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:

    Any help is appreciated! Thanks!

    Attached Files: