title: How to manage the paired devices of a Player Input Component
body: <p>Hi I am trying to set up a multiplayer system with <strong>Unity's</strong> new <strong>Input System</strong>.</p>
  
  <p>To do this I use a <strong>player input manager object</strong> to spawn and control players and a <strong>player prefab object</strong> as a player to spawn.</p>
  
  <p>The <strong>manager object</strong> contains as expected a <strong>player input manager</strong> component, but also: a <strong>player input</strong> component (<em>To detect inputs when there are no players spawned; these are normally used by player objects</em>) and a <strong>script</strong> to manage joining and leaving players and receive inputs.</p>
  
  <p>The <strong>player prefab</strong> object contains a <strong>physical object</strong> to control, a <strong>player input</strong> component and 2 <strong>script's</strong>: 1 to handel incoming inputs and 1 to control the physical object.</p>
  
  <p>Joining players works. I just use: </p>
  
  <p><code>PlayerInputManager.JoinPlayer(Int32, Int32, String, InputDevice)</code>
  (<em>This is documented</em> <a href="https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.PlayerInputManager.html#UnityEngine_InputSystem_PlayerInputManager_JoinPlayer_System_Int32_System_Int32_System_String_UnityEngine_InputSystem_InputDevice_" rel="nofollow noreferrer">here</a>)</p>
  
  <p>But I somtimes also want to remove or change which devices are set to a player or the manager, but I can't find what I need to do so.</p>
  
  <p>I tried to find a function that does that for the <strong>PlayerInput</strong> class but I couldn't find anything.</p>
  
  <p>I also tried to manipulate the <strong>UserInput</strong> struct (<em>which basically is a player's ID</em>) inside my object's <strong>Player Input</strong> component, but unlike the <strong>Player Input Manager</strong> I couldn't acces any documented properties. 
  (<em>For this I looked</em> <a href="https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/api/UnityEngine.InputSystem.PlayerInput.html#properties" rel="nofollow noreferrer">here</a>)</p>
  
  <p>So there for my question: How do I acces <strong>PlayerInputs</strong> user ID and tweak it's paired devices?</p>
  
  <p>Also if I made a mistake or you don't understand something let me know.</p>