Skip to content

Component

The Local Player component enables multiplayer functionality when added to any GameObject. When combined with the Character component, it allows multiple characters to be controlled simultaneously with different input devices.

Local Player component interface in Unity

Player Info

This panel displays runtime information useful during development:

  • Player Number: The unique identifier assigned to this Local Player upon spawning
  • Split Screen Index: The screen position this Local Player controls during split-screen mode
  • Device Name: The input device currently assigned to this Local Player

Player Input

Configure input settings and default states in this panel:

Configuration Options

  • Actions: Reference to the Input Action Asset containing player input configurations
  • Default Control Scheme: The initial control scheme assigned when the Local Player spawns
  • Disable Auto-Switch: When checked, prevents the Local Player from changing input devices
  • Default Action Map: The initial action map activated when the Local Player spawns

Input Device Auto-Switching

Auto-switching can only occur when joining is disabled on the Local Player Manager. This prevents device conflicts during the join process.

Control Schemes

Configure different control schemes (Keyboard, Gamepad, etc.) in your Input Action Asset to support various input devices.