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

Action Map / Actions Enable does not reset button state after a Disable is called

Discussion in 'Input System' started by BinaryEclipse, Jan 30, 2020.

  1. BinaryEclipse


    Sep 1, 2016
    If an action causes the action or the map to be disabled, when it's enabled next time, the action will not work until it is pressed twice.

    Atm, my solution is essentially, whenever I want to do an Enable, I do a Dispose and then create my new object before enabling it again.

    It would be nice if Enable would handle resetting the button state such that a new press will work.
    Obviously, I cannot say, but it seems as though if an action is disabled on button down, it will not register the button up, and next time you enable it, on button down will do nothing because it's thinking "button down is impossible - I haven't even seen the button up yet!"
  2. philippelabalette


    Mar 23, 2019
    It has been solved in the 1.0.0 preview 6