The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

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.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

What is the Difference between PhotonNetwork.Ismasterclient and PhotonView.ismasterclient in Photon

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 ?


2021-08-03 09:32:30

In the latest PUN 2, there is no PhotonView.isMasterClient, so PhotonNetwork.IsMasterClient will be better.

2021-08-08 09:36:20

Thanku So Much .. . .. . .

2021-08-10 11:49:44

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