- Home /
Does Unity uGUI support multi-user interface?
For example, in local co-op, if you want multiple users interacting with UI elements, you would need multiple EventSystems working at same time, having different active objects and different states.
And i just can't get this working with new Unity uGUI. Is such a thing even possible?
Is this local co-op on the same device (couch co-op) or on two different devices?
You don't need multiple event systems because there's nothing multiple can do over a single one.
Just handle the input of the one according to screen position, or button type or whatever.
What kind of interactions do yo uhave in $$anonymous$$d? Having multiple virual mouse cursors on the same screen is possible. However when it comes to keyboard input there is only one from the OS. So things like input fields can't be "split" to multiple users as only one input field can be active at a time.
However if you create some sort of virtual keyboard which you contol with a mouse cursor (like most console games do) it would be possible to have two users on the same screen each with a seperate virtual keyboard (or even with a single one with some clever event routing).
Though as others have said your exact usecase is not really clear. So you should clarify what you mean by "local co-op" and how those multiple users actually interact with your game.
So its couch co-op where you can naturally connect a keyboard+mouse and/or multiple gamepads.
And i need to control 2 different interfaces on the same screen. So handle active UI elements (EventSystem.activeGameObject), OnSelect/OnDeselect/On$$anonymous$$ove events per player.
I am guessing its not possible to do it with the Unity native uGUI.
Your answer
Follow this Question
Related Questions
Redirect UI Events to non visible UI Hierarchy 0 Answers
IsPointOverGameObject() not working as intended!!! 2 Answers
When i press play the buttons work, however, the buttons dont work on my iphone. 1 Answer
How to see UI image (static) only trough specific UI element of the Scroll Rect? (Scroll View) 0 Answers
EventSystem OnPointerClick - not working 0 Answers