UI buttons for clients in a multiplayer game?

the game is still very simple.

There are some canvas in World Space Mode where the players have to interact with.

The problem is that only the player that is running the server can interact with the buttons (or entire canvas). all the clients can not.

Is not that the code is not working, is the button itself that does not react.

I tried to addes to some butons & some canvas Network.Identity and activate the “Player Authority”, but nothing different happens…

Some help? idea? recomendation?

thaanks:D

Well, after some days of madness, I found a solution. Maybe there is another solution for the problem, but this worked.

All Space world Canvas that needs to be clicked by a player, are now childs (in the hierarchy) of the Player GameObject that network spawns for each player. The main player object and all the canvas have now a NetworkIdentity component with the “Player Authority” property active.

Then i just move all the canvas to the world position i need. This way, all canvas can be clicked by the player owning them.

:smiley:

hello can you help i have the same problem.