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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. 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