- Home /
Mirror multiplayer authority issue
Greetings,
So my project is heavily based on Mirror's Room sample but with a different RoomPlayer object (only difference is that mine has the ready button on it instead of drawn at runtime in NetworkRoomPlayer). The problem is, as soon as the second player joins the lobby/room, other client buttons don't work due to missing authority. I found out that only the last player that joins has the authority and I have no clue why ...
Now the question is, how come if I draw a button at runtime and get the click then call a CMD works on all clients including server but if I have a custom button attached to the instantiated RoomPlayer prefab it only works for last client that joins?
public void OnReadyClick() {
if (NetworkClient.active && isLocalPlayer)
CmdChangeReadyState(true); //only last client that joined has authority
}
Any help is appreciated!
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Mirror NetworkServer.Spawn doesn't spawn stuff on Clients 2 Answers
How to filter Lobby filled matches(with max players) in UNET ListMatches()? 0 Answers
Oculus VR with Mirror multiplayer - headset is controlling both players 1 Answer
NetworkIdentity of NetworkLobbyPlayer has assetID 00000 zero after UnityEditor lost focus 1 Answer