Hi guys, as we all know when we try to implement a local multiplayer UI screen, the event system just sucks.I don’t even understand how Unity doesn’t have a solution to work with several event system with id’s.
Well, anyway player selection seems like a very commun setup and still I can’t wrap my head around it.
The only viable solution i can see is a very poor one : having a “raw” script for every button/panel/dropdown and calls explicit method for each one of them regardless of the real UI and EventSystem methods…
How do you guys implement that kind of UI multiplayer scene ??
Any input would be really appreciated !
It’s a common challenge, but there is not a common solution. The event system is also not stupid.
There are many ways to approach local multiplayer character selection screens. I suggest a data driven approach where inputs from controllers modify an index of which character is selected and that player’s selector icon simply highlights the given character portrait at that index. I’ve used that approach and it worked pretty well.
When all players are ‘ready’, just start the game with the current character indexes.
I know that the Event System works just fine in a single player setup, I just think that it kind sucks that you can’t easily create a list of event system and link them to different UI element.
It’s interesting but my screen is more complex that this and there will be a nice amount of character customization and stuff. I’m afraid this approach could be messy in the long run
Not sure about this, but I saw this post a while ago and wasn’t sure how to answer. They answered for themselves with this: [SOLVED} Multiple EventSystem
Hi man, thank you for your input !
I spend quit a moment trying to make it work but It seems like I’m missing something.
My screen is a bit more complex than this exemple, there are dropdown and other stuff (don’t event know if it’s related or if I’m just a noob)…
Also I’m using InControl as an Input Manager and it requires to use an alternative version of the ui module input class to deal with UI stuff…
Sorry I don’t really have any more info. Perhaps someone else who’s dealt with this before will have more insight. It’s not something I’ve ever put much thought into. I just happened to have remembered that post from before.