Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Showcase How to destroy your UI with InputSystem

Discussion in 'Input System' started by Spoilerast, May 5, 2024.

  1. Spoilerast


    Aug 1, 2019
    I have a little project on Unity 6000.0.0f1, created on Universal 3D SRP, where I'm using InputSystem and UI Toolkit (or they call it Unity UI now?). Recently I started working on UI. And I noticed: nothing worked... There was a lot of googling to solve, and nothing. After creating a few new projects and testing I check all, every line in settings, all objects in project, one by one...

    To make things I have my custom InputActions:

    See this little button here?

    There is your assassin! Do not touch it. Assigning custom InputActions as Project-wide will kill events somewhere somehow related on default InputActions (Assets/InputSystem_Actions). You deleted default InputActions because you have your own? There is no turn back in that case. Actually no, you can import it from another project and assign it back. Simple, but hard to guess.

    Maybe it is not a problem with InputSystem. InputActions is just a json file with some default bindings.

    UI Toolkit Event Debugger attached to GameView shows active events in both cases, which means this is not an Editor problem. Strange things happens only in runtime, inside game.
    As one man once say: "It's just works"
  2. Phaz0r18


    Feb 21, 2013
    Hi, I'm currently struggling with the new Input system and UI toolkit (Unity UI?) myself so I'm not sure I can be much help.

    Although, in regards to the Default Input Actions Asset, you should still have a copy in your Input System Package in your Packages, if you navigate to the folder 'Player Input' you can find the original there, if you click it there should be another button which will let you re-assign it as the Project Wide Default Input Actions again.

    Hope that helps!

    Attached Files: