Set up split-screen local multiplayer
If you enable the Split-Screen option, the PlayerInputManager automatically splits the available screen space between the active players. For this to work, you must set the Camera property on the PlayerInput prefab. The PlayerInputManager then automatically resizes and repositions each camera instance to let each player have their own part of the screen.
If you enable the Split-Screen option, you can configure the following additional properties in the Inspector:
| Property | Description |
|---|---|
Maintain Aspect Ratio |
A false value enables the game to produce screen areas that have an aspect ratio different from the screen resolution when subdividing the screen. |
Set Fixed Number |
If this value is greater than zero, the PlayerInputManager always splits the screen into a fixed number of rectangles, regardless of the actual number of players. |
Screen Rectangle |
The normalized screen rectangle available for allocating player split-screens into. |
By default, any player in the game can interact with any UI elements. However, in split-screen setups, your game can have screen-space UIs that are restricted to just one specific camera. See the UI Input section on the Player Input component page on how to set this up using the Player Input component, InputSystemUIInputModule and MultiplayerEventSystem components.