Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    20
    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:
    20
    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