Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Question Quick way to get input?

Discussion in 'Input System' started by GeriB, Jul 4, 2020.

  1. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    198
    Is there any way to quickly get input from a key or button with the new input system?

    Something equivalent to:
    Input.GetKeyDown(KeyCode.Q)

    Right now the only way I know to get input is tu declare an action, set a key for it etc, etc...

    Pretty inconvinient when prototyping or testing things out.
     
  2. GeriB likes this.
  3. GeriB

    GeriB

    Joined:
    Apr 26, 2017
    Posts:
    198
    Lurking-Ninja likes this.