Files
Test/Library/PackageCache/com.unity.inputsystem@2436e68c60c4/Documentation~/set-up-player-input-component-local-multiplayer.md
T
2026-11-01 23:39:55 +02:00

884 B

uid
uid
input-system-component-local-multiplayer

Set up the Player Input component for local multiplayer

In these local multiplayer scenarios, the Player Input component should be on a prefab that represents a player in your game, which the Player Input Manager has a reference to. The Player Input Manager then instantiates players as they join the game and pairs each player instance to a unique device that the player uses exclusively (for example, one gamepad for each player). You can also manually pair devices in a way that enables two or more players to share a Device (for example, left/right keyboard splits or hot seat use).

Each PlayerInput corresponds to one InputUser. You can use PlayerInput.user to query the InputUser from the component.