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. Dismiss Notice

Question How to reference InputBinding/ InputBindingComposite in the editor

Discussion in 'Input System' started by downstroypvp, Oct 5, 2022.

  1. downstroypvp

    downstroypvp

    Joined:
    May 30, 2016
    Posts:
    35
    Hello,

    I know we can reference InputAction in the editor using the InputActionReference scriptable object. Can we do the same for InputActionBindings?

    Just being able to define a InputBindingReference or being able to drag and drop InputBinding inside fields in editor.



    Would be super helpful to display sprite without resorting to wanky string comparison.

    Thanks
     
  2. downstroypvp

    downstroypvp

    Joined:
    May 30, 2016
    Posts:
    35
    All right I have found it, after a lot of digging. Here is the Unity example for that.
     

    Attached Files: