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

Question IT WON'T STOP!

Discussion in 'Input System' started by SilverFangsStudio, Jan 9, 2021.

  1. SilverFangsStudio


    Nov 18, 2020
    Hey, ran into a small problem and could really use some help, I'm making an action adventure game and have gotten pretty far but can't find a solution to the latest brink wall, I'm have my character preform a five hit combo string and while he does execute all five attack animation the problem comes from when I button mash and stop mid combo he keeps going, some times when he reaches the end and goes back to idle he dose another two hits, how do I stop this, I'm too new to coding to write out a script even though I know what I want it to do. If anybody can help me on this, much appreciation.

    Thanks in advance, SilverFang studios
  2. Abneto


    May 31, 2018
    From fiddling around with the input system and from what I understood while using it, it seems that the Input System's input module seems to buffer the inputs you give. For instance, I had a controller disconnected window, and when it shows up, the event system is turned off and I listen straightly by Input to read whenever a specific controller button is pressed and then I resume.

    However, when that happens, I turn the eventsystem back on (after around a second), and it still counts to the button press after that, and selecting some random button in the menu as the buttons is the same as the confirm in the input system action map. If someone knows how to clear this sort of buffer or queue that the Input System event module has, I'd appreciate it.

    As a workaround, I had to disable both the event system AND the input module in order to ignore any inputs placed on that controller disconnected window (I set on my project settings to use both input handlers)