docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)