How can I get PlayerRef of MasterClient in current session ( shared mode, nightly 1.1.2 )

Hello,

I need to get PlayerRef of MasterClient in current session, basically equivalent of PhotonNetwork.MasterClient in PUN.

How do I do that ?

Answers

  • Hi,

    Object.StateAuthority should work, if it don't, you can store on a NetworkBehaviour checking on Spawned() if is the MasterClient, if so, store the PlayerRef on a Networked property.

    -----

    Isaac Augusto

    Photon Fusion Team