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.

Question Button control type disappears from selection

Discussion in 'Input System' started by Disco_Doctor, Jul 9, 2022.

  1. Disco_Doctor

    Disco_Doctor

    Joined:
    Sep 29, 2019
    Posts:
    1
    I am not sure if this is a bug, or I am doing something wrong that gets me into this situation, but any time I create a new binding in my input action, I find the Button and Discrete Button, both of which are Control Types, disappearing from the dropdown selection.

    Steps to reproduce:
    1. Create a new Action Map.
    2. Create a new Action.
    3. Select Action Type -> Value, Control Type -> Button.
    4. Create a new empty binding.
    5. Go back to the Action, see that the Control Type becomes Any, and the Button and Discrete Button no longer appear in the drop down.

    Why does it happen? Is it the expected behaviour? As a beginner with the new input system I found this to be very confusing...

    Is it because Value, which continuously supplies values, opposed to a Button, which is triggered by button-like behaviour?