Search Unity

Multiple Instances of the Player and Input System

Discussion in 'Input System' started by The_Arrival, Aug 25, 2020.

  1. The_Arrival

    The_Arrival

    Joined:
    Dec 3, 2014
    Posts:
    82
    Hey there,

    i´m using the new InputSystem for a P2P MP Game. For testing purposes i´d like to run multiple instances of the game on the same machine, so i could test the NetCode.

    I have set the Input System to joinPlayersWhenButtonIsPressed = true
    I have set the player to visibleInBackground = false and rinInBackground = false

    The issue is, that a Button Press will spawn a player in ALL instances of the game. Is there a way to only spawn a player on the active instance and bind that controller to that instance of the game?