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 Unable to Use Input System Panel

Discussion in 'Editor & General Support' started by DoubleUU, Jun 18, 2023.

  1. DoubleUU

    DoubleUU

    Joined:
    Dec 29, 2018
    Posts:
    33
    I'm trying to use the new Input System for the first time in version 2022.3.1f1. I downloaded the package but when I tried to create my first action map, I got to the binding stage and got stuck. When click the Path drop down, I get this error in the console (depending on skin):

    Unable to find style 'ToolbarSeachTextField' in skin 'LightSkin' Used
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Unable to find style 'ToolbarSeachTextField' in skin 'DarkSkin' Used
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    And the dialog looks like this:

    upload_2023-6-18_14-4-9.png

    I can click on the "Listen" button, which activates, but pressing any keys/buttons has no effect. I cannot drill down into the input types either. Nothing happens when I click on them.

    Any suggestions on how to fix this?

    Thanks!
     
    Last edited: Jun 18, 2023
    StrangeWays777 likes this.
  2. DoubleUU

    DoubleUU

    Joined:
    Dec 29, 2018
    Posts:
    33
    Updated to 2022.3.2f1, same issue.
     
  3. DoubleUU

    DoubleUU

    Joined:
    Dec 29, 2018
    Posts:
    33
    Well, the bug is in the AdvancedDropdownGUI.cs file. They mispelled the GUIStyle:

    public static readonly GUIStyle toolbarSearchField = "ToolbarSeachTextField";

    Missing the "r" in "Search". I tried to change the file but I guess that's not possible. Is there a way to override that variable in my project so I can use the editor?
     

    Attached Files:

  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,769
    The opposite actually. The style named was misspelt for years, and Unity in the latest update fixed the spelling.

    Pretty sure the Input system devs are aware of it, and should be in a future update. In any case I would check the Input System forum as this isn't the right sub-forum.
     
    StrangeWays777 likes this.
  5. Patrimondo

    Patrimondo

    Joined:
    Jul 10, 2019
    Posts:
    1
    Same issue. Any solution yet?
     
    StrangeWays777 likes this.
  6. StrangeWays777

    StrangeWays777

    Joined:
    Jul 21, 2018
    Posts:
    29
    Same problem here.
     
  7. donaldleowjj

    donaldleowjj

    Joined:
    Sep 30, 2014
    Posts:
    1
    Found a fix myself, if you see the warning, double click the warning, which will bring you to the script, on the script, change the "ToolbarSeachTextField" to "ToolbarSearchTextField". Save the file, and it should fix the issue.

    If unable to find the warning, you should be able to find the script under<Project Folder>\Library\PackageCache\com.unity.inputsystem@1.6.1\InputSystem\Editor\Internal\AdvancedDropdown\AdvancedDropdownGUI.cs
     
    SebzSZ likes this.
  8. SebzSZ

    SebzSZ

    Joined:
    Apr 11, 2022
    Posts:
    1
    It works, but it gives me these warnings. Also, I need to change ToolbarSeachTextField every time I open the editor. Changes are not saved.

    upload_2023-7-12_19-1-41.png
     
  9. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hello there!

    The issue was fixed in 2023.1.0b18, 2023.2.0a15, I will notify our developers regarding the issue also affecting 2022.3
     
    Walter_Hulsebos and awcmon like this.
  10. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hello!

    I come bearing good news. the issue has now been fixed in Input System 1.6.3!

    So please update the Package at your earliest convenience in the Package Manager.
     
    TheGrovesy and spiney199 like this.
  11. vanlong

    vanlong

    Joined:
    Jun 25, 2015
    Posts:
    1
    It's not fixed right now. Please check it again
     
  12. MonoFlux

    MonoFlux

    Joined:
    Jun 13, 2015
    Posts:
    39
    I use 2022.3.4f - I had the same error for Dark Skin, when I switched to Light Skin the error went away. Perhaps it got fixed for Light Skin - which was the issue with OP, but might not have been fixed for Dark Skin.
     
  13. LeoCeballos

    LeoCeballos

    Joined:
    Mar 16, 2011
    Posts:
    25
    It is broken again as of Input System 1.7.0, running in 2022.3.9
    Seems broken in both light & dark versions.
     
    Walter_Hulsebos likes this.
  14. Kozaki2

    Kozaki2

    Joined:
    Apr 8, 2019
    Posts:
    47
    I confirm, the error occurs in version 2022.3.9 and InputSystem 1.7.0. As a temporary solution, you can change the AdvancedDropdownGUI.cs file as mentioned earlier but not in the project but in the cache. In my case, the file path is C:\Users\{user}\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.inputsystem@1.7.0\InputSystem\Editor\Internal\AdvancedDropdown\AdvancedDropdownGUI.cs

    This file in project is part of the Unity Package Cache so any changes made will be lost, so that's why you need to modify file directly in cache dir
     
  15. GaryParkin

    GaryParkin

    Joined:
    Aug 14, 2013
    Posts:
    9
    Unity version 2022.3.9f1 and package manager 1.7.0 it's broken.
     
  16. nicholashjdagenais

    nicholashjdagenais

    Joined:
    Sep 1, 2021
    Posts:
    2
    I found the fix until 1.7.1 use the listen button after fixing the typo and the you can change the input.
     
  17. CaptainCoulomb

    CaptainCoulomb

    Joined:
    Sep 29, 2020
    Posts:
    1
    Broken in Dark Mode 2021.3.30f1 with Input System 1.7.0
     
  18. HermitIsland

    HermitIsland

    Joined:
    Sep 1, 2020
    Posts:
    1
    You saved my life lol, this is such a stupid bug... how they haven't pushed a hotfix for this by now is sad.
     
  19. Pauliusd

    Pauliusd

    Unity Technologies

    Joined:
    Nov 29, 2018
    Posts:
    3
    Hi everyone, not gonna lie this bug fix has been a bit of an edge case mess. Sorry about that. The good news is that It's done properly now in 1.8.0-pre.1. This is a preview version though so not everyone might want to use it, so here's some possible workarounds:
    • downgrade to Input System 1.6.3
    • or update to Input System 1.8.0-pre.1 (This is a preview build)
    • or edit the file mentioned by @Kozaki2 from this link to get it fixed in 1.7.0 (Probably the best and safest option)
     
  20. BrainwavesToBinary

    BrainwavesToBinary

    Joined:
    Jul 8, 2019
    Posts:
    26
    FYI for anyone who modifies the file in the main cache and doesn't see resolution in their active project - the issue persisted until I deleted the Library directory and re-opened the project, forcing the fixed file to get pulled in.
     
  21. amamaenko

    amamaenko

    Joined:
    Jun 2, 2013
    Posts:
    8
    Unity 2021.3.30f1, InputSystem 1.7.0. Issue is still there.

    The package manager doesn't allow me to downgrade the InputSystem 1.6.3 or upgrade to 1.8-pre, so I patched the AdvancedDropdownGUI.cs

    at (MacOS the path is different, of course)
    /Users/<UserName>/Library/Unity/cache/packages/packages.unity.com/com.unity.inputsystem@1.7.0/InputSystem/Editor/Internal/AdvancedDropdown/AdvancedDropdownGUI.cs

    Then, as noted by @BrainwavesToBinary deleted the entire Library folder in the project, making sure sure that all dependencies are re-imported and rebuilt.

    BUT, IT didn't help!.. I don't see the error message in the console anymore, but binding edit is still not working for existing actions.
     
    Last edited: Oct 22, 2023 at 2:38 PM