Local Multiplayer UI - Shared and Individual UI

Hi there!

I’m creating a local multiplayer game and I’m having some trouble with handling UI. For a little bit of context I’m using the new input system.

In my game before you can start playing I have a team selector menu. This place is where each player that has joined selects which team they want to play on. What I do is assign the joined players to their own Multiplayer Event System component, which is done by assigning their respective UI input Module to their Multiplayer event system in the Player input component. This all works exactly as intended.

The problem I’m having is when the game ends and UI showing buttons for going to the main menu or replaying another match, only one player is able to control the UI. What I need for this UI is for it to be shared. If one player tries to navigate to the menu button, and then another player tries to move back to the replay button, it the UI should move like: Replay Btn → Menu Btn → Replay Btn. Right now the UI only let’s the first player who joined manipulate this UI.

Does anyone know why this is happening and how I can solve it?

1 Like

It seems that if I remove the player input component it solves the issue. I’d rather keep this component on my gameobjects though and I’m not sure what’s wrong with the configuration

This is the exact scenario I am trying to solve too. I have multiple Multiplayer Event Systems, one for each Player, controlling a certain tree of UI elements. This works just fine. I now also have some other buttons, outside of the hierarchy “occupied” with my Multiplayer Event Systems, which I want all players to control.

I was not able to figure out a way to do this. Adding a normal EventSystem to the scene causes all actions that players perform in their local UI to be executed twice, since obviously they already have a MultiplayerEventSystem listening for inputs.

I also tried adding another MultiplayerEventSystem for the UI that I want all players to share and not assign it to any PlayerInput, but this does not work either. It seems that only my first player somehow also gets access to it, the others can’t use this shared UI.

I have no idea how to solve this and what a correct setup would be.