Search Unity

Input System Doesn't Recognize Anything

Discussion in 'Input System' started by ediit, Jul 15, 2019.

  1. ediit

    ediit

    Joined:
    Mar 17, 2018
    Posts:
    8
    Hi,

    I've set up the new input system correctly and implemented it with code with lines like this:
    InputManager.Input.Movement.Direction.performed += ctx => movement = ctx.ReadValue<Vector2>();
    but no input is recognized in my game. I suspected something was wrong when I couldn't press a button to set the keybinding initially, I had to go into the "keyboard" folder and find the key I wanted to attribute to an action. How do I get the system to recognize my inputs?
     


  2. It's virtually the same for keyboard as well. Obviously with keyboard controls.
     
  3. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Considering @ediit was using the same wonky lambda setup as Brackeys, I'd guess that was the tutorial that was followed here. Anyway, you need to enable the action map you use (in your c# script) before it does anything. That tutorial also has that on the sample script.