Search Unity

Resolved Local multiplayer with ECS

Discussion in 'Input System' started by Bivens32, May 27, 2020.

  1. Bivens32

    Bivens32

    Joined:
    Jul 8, 2013
    Posts:
    36
    So I have a PlayerControls class that has been generated from an InputActionsAsset. For the player, I generate a new instance of the class and store it inside a class IComponentData so I can easily read input from inside systems. I'm thinking all I should need to do for player 2 is create a 2nd instance of the PlayerControls class and assign a different device to it. Is there a way to do that?
     
  2. Rene-Damm

    Rene-Damm

    Joined:
    Sep 15, 2012
    Posts:
    1,779