GartzenDeHaes / MirrorSplitScreen

Unity local split screen with Mirror networking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mirror Split Screen

Uses the new input system for local split screen multiplayer with network players.

Short demo

Running The Demo

To run the Mirror Tanks split screen demo:

  1. You'll need a supported gamepad such as an XBox or dual shock controller.

  2. Clone or download the repository and open in Unity (currently 2019, but newer versions should work).

  3. Open the demo scene in /ThirdParty/TanksSplitScreen/Scenes/SplitScreenTanksScene

  4. Hit run. (The demo scene is setup so that only the keyboard and mouse are active until the networked game starts).

  5. Click Host (Server+Client)

  6. Push a button on your controller to join the second local player.

  7. To test joining network players:

  • Go to "File>Build Settings" and remove any existing scenes in the build.

  • Add the SplitScreenTanksScene.

  • Build

  • Note: To use a gamepad controller with two games running locally, you'll need to disable background input processing. Otherwise, your controller will join both games.

Unity Input Settings

Security

This system works by allowing clients to spawn new players. Probably not what you want on a public facing service.

Other Notes

A development version of Mirror is included for convience, but you should use their asset store builds in your system.

About

Unity local split screen with Mirror networking

License:MIT License


Languages

Language:C# 99.9%Language:JavaScript 0.1%Language:Smalltalk 0.0%