What is the Difference between PhotonNetwork.Ismasterclient and PhotonView.ismasterclient in Photon
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
What is the Difference between PhotonNetwork.Ismasterclient and PhotonView.ismasterclient in Photon
Devesh
2021-08-01 06:23:21
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 ?
Comments
In the latest PUN 2, there is no PhotonView.isMasterClient, so PhotonNetwork.IsMasterClient will be better.
Thanku So Much .. . .. . .
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.
Back to top