Home

Awesome

Local-multiplayer-UI

A unity project made for navigating the UI in a local multiplayer game.

I'm working on my own game Setting Sun which contains local coop and I needed an interface that can be used by multiple players.

It wasn't easy to find any info on how to make a coop interface work in unity. I finally figured it out and wanted to put the project up for everyone struggling with this.

The project contains a custom input module and custom event system made for 4 controllers using X_input/direct input.

It uses the built-in unity event system so implementing should be easy.

There's a premade example scene called Coop UI navigation where 4 xbox controllers can each navigate their own panel with buttons.

There's a toggle on the player input for both X_Input and unity's direct input.

Unity's input manager is also configured for 4 controllers (all though that's not saying much cause I pretty much had no choice but to use X_Input), the InputManager file is in the assets and you need to copy it too your projectSettings folder (THIS WILL OVERRIDE YOUR CURRENT INPUT SETTINGS!!!)

How to use:

Notes:

alt text