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.
  2. Dismiss Notice

Bug Editor doesn't display InputAction variable name

Discussion in 'Input System' started by JasonSpine, Oct 17, 2021.

  1. JasonSpine

    JasonSpine

    Joined:
    May 14, 2015
    Posts:
    16
    Code (CSharp):
    1.  
    2.         public InputAction walkLeftAction;
    3.         public InputAction walkRightAction;
    4.         public InputAction jumpAction;
    5.  
    Is displayed:
    upload_2021-10-17_2-3-13.png

    I don't know if I'm setting walkLeftAction, walkRightAction etc.
    I could add [Header()] before each field, but it's not how it's supposed to work...

    Unity version: 2019.4.11f1
    InputSystem version: 1.1.1
     

    Attached Files:

  2. blibsproj

    blibsproj

    Joined:
    Jan 23, 2021
    Posts:
    4
    I have the same problem.
    Unity version: 2021.2.5.f1
    InputSystem version: 1.2.0

    Have you found a solution yet?
     
  3. JasonSpine

    JasonSpine

    Joined:
    May 14, 2015
    Posts:
    16
    I recently updated software in my project and now it works.

    Unity version: 2021.3.15f1 Personal
    InputSystem version: 1.4.4

    Code (CSharp):
    1.         public InputAction walkLeftAction;
    2.         public InputAction walkRightAction;
    3.         public InputAction jumpAction;
    4.         public InputAction aimWeaponAction;
    5.         public InputAction aimWeaponGamepadAction;
    6.         public InputAction shootWeaponAction;
    7.         public InputAction useSpecialAction;
    8.  
    9.         public InputAction pauseToggleAction;
    upload_2022-12-22_12-50-29.png