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.

Question [SOLVED] New Input System: Input Actions Asset not registering any input

Discussion in 'Input System' started by davidbasilefilho, Mar 22, 2021.

  1. davidbasilefilho

    davidbasilefilho

    Joined:
    May 17, 2020
    Posts:
    6
    None of the devices work(Dualshock 4 and keyboard).

    I tried to reinstall the package and restart the editor, nothing happens.

    Action & bindings
    upload_2021-3-22_10-46-53.png

    Properties
    upload_2021-3-22_10-46-25.png

    Input System version
    upload_2021-3-22_10-47-45.png

    Unity version: 2020.3.0f1 (LTS)

    Code
    Code (CSharp):
    1. //using input actions interface
    2.  
    3. void OnMove(InputActions.CallbackContext context){
    4.      dir = context.ReadValue<Vector2>();
    5.      Debug.Log(dir);
    6. }
    Console(Play Mode)
    upload_2021-3-22_10-49-53.png
     

    Attached Files:

  2. davidbasilefilho

    davidbasilefilho

    Joined:
    May 17, 2020
    Posts:
    6
    i forgot to make an instance of my input class and set callbacks