Search Unity

Regression in preview 2? All device on one PlayerInput

Discussion in 'Input System' started by deadalusai, Jan 24, 2020.

  1. deadalusai

    deadalusai

    Joined:
    Dec 27, 2018
    Posts:
    8
    Hello,

    I'm creating a local multiplayer game, for 1 to 4 players.

    I just upgraded the new input system from 1.0.0 preview 1 to preview 4.

    I have a scene with 4 gameobjects, each with a PlayerInput script. I have 3 gamepads plugged in my computer.

    The problem :
    In "preview 1", each gameobject was assigned a device on start.
    Now in preview 2 and above, all the devices are assigned on only one gameobject. (and there is only one user)
    All the device are correctly seen in the debugger.

    I checked the changelog but didn't see anything about this.
    Is this a bug or did I miss something ?


    I'm using unity 2019.3.0.f1.

    Thank you.
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779
    Are you using control schemes? Would be my first guess. I.e. PlayerInput sees no control schemes and looks at the bindings to figure out the devices it needs and ends up grabbing more than it should.

    If that's the case, using control schemes may fix the problem. Irrespective of that, though, I'd say this sounds like a bug. Or at least, if there's no need based on the bindings to grab more than one gamepad, it shouldn't. Whether there's control schemes in the asset or not. So, if you're still seeing the problem with 1.0.0-preview.4, please file a ticket with the Unity bug reporter.