Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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