- Home /
(Multiplayer with Mirror) How do you give the Host the ability to modify sync vars of other Clients ?
I want to give the host of my mirror multiplayer game the authority to change the names of other Clients.
Playername
is a SyncVar
string
, and the Host has access to an "Edit" button and a TMP_input
to enter the new name of a player.
The problem is I don't know how to properly change the SyncVar
of a player object that doesn't have isLocalPlayer
. I tried calling a command on the local player object, and then changing the other player's Playername
on the server side, but it seems like I don't have proper authority to do that.
I've looked into granting authority, but it seems like I would be taking authority away from the other player if I did that. Is there an easy solution here?
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Stop accepting new player connections in Unity Mirror Networking 1 Answer
Reconnecting a player in an online game... 0 Answers
How to make a host-client server? 0 Answers
I want to make a powerup with a an associated timer on the server side using mirror 1 Answer