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

Options
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

  • Tobias
    Options
    In the latest PUN 2, there is no PhotonView.isMasterClient, so PhotonNetwork.IsMasterClient will be better.
  • Devesh
    Options
    Thanku So Much .. . .. . .
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    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.