Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Can't get PlayerInput to work

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

  1. wowsuch_jmorhart

    wowsuch_jmorhart

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

unityunity