Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: defchurch on April 21, 2023, 09:36:51 PM
-
Hi,
I've been struggling with this for some time. I just can't get 2 players to control the UI independently for my player select screen. I've tried multiple canvas' with unique roots. Different set ups with the multiplayer event system and player input but it all leads to dead ends. I made my own system that worked but it's a mess I don't want to go back to because it bypassed the Unity UI system.
There's a video about changing the "UI Input Module" "in player input" but I couldn't find a way to do that with Playmaker. I've also been using "UI Get Selected Game Object" but it seems to be global. Is there something else I should be using to get the UI element with two players?
This is the last piece of the UI puzzle and if I can get this done I can finally get back to the actual game. Any help would be much appreciated!
-
Hi.
I would make my own "ui system"
for each player make a set :
1 fsm for navigation
1 fsm for highlighting the selected button
1 fsm for selection pressed
you might even be able to set it up with 1 or 2 fsms for each player
-
Looking more into the Unity UI system it looks like it's not very friendly for two players using the UI. I recently heard that rewired may be the way to go too. For now I can try a hybrid of the current UI system when only 1 controller is needed and switch to my own system when the second player needs to be involved. Thanks!