Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Inspector Issue - InputActionMap Elements Repeat / Redundant Bindings Array

Discussion in 'Input System' started by Holonet, Jul 29, 2018.

  1. Holonet

    Holonet

    Joined:
    Aug 14, 2017
    Posts:
    84
    I glanced through Github and didn't see this, so hope this is not duplicating anything:

    If I declare a public InputActionMap in code:

    public InputActionMap map = new InputActionMap("initial");


    ...it appears in Inspector, but if I try to use the menu and select which button I want for an action, all the array elements are the same, and changing one makes all of them change (see attached image).

    Also, it looks like there's a separate array for binding those actions, when there's already a menu to pick (again, see attached image). Bug? For now, I'm just adding the actions in code and that's no big deal, but I thought this might need addressing.
     

    Attached Files:

  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Ah yes, that's not a supported workflow ATM. I added a TODO and ticket to the stack to either support this (could be a useful workflow) or make it clearly unsupported.