What is the Difference between PhotonNetwork.Ismasterclient and PhotonView.ismasterclient in Photon
Options
Devesh
✭
I Just stuck at the position Where I want a to know who is master client and who is client Without PhotonView Please suggest who is right to use for this condition PhotonNetwork.Ismasterclient OR PhotonView.ismasterclient ?
0
Comments
-
In the latest PUN 2, there is no PhotonView.isMasterClient, so PhotonNetwork.IsMasterClient will be better.0
-
Thanku So Much .. . .. . .
0 -
Hi @Devesh,
Thank you for choosing Photon!
I wanted to add that even in PUN Classic (PUN 1) there is no PhotonView.isMasterClient.
Maybe you are referring to PhotonPlayer.isMasterClient in PUN Classic which is Player.IsMasterClient in PUN 2?
In any case, in PUN 2:- PhotonNetwork.IsMasterClient
- PhotonNetwork.NetworkingClient.IsMasterClient
- PhotonNetwork.LocalPlayer.IsMasterClient
are the same thing.0