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.

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

    Unity Technologies

    Joined:
    Sep 15, 2012
    Posts:
    1,779