How do I take care of masterserver changing to a different player?

Options
I can't find it in the API, anything like OnBecameMasterClient() or OnTransferMasterClient(playerId) or something like that!
I'm running games on the master client but the master needs to be able to tell the new master who's taking over what game is being played, how long is left, etc. How do I do this or what do I need to read? Thanks!

Comments

  • jeanfabre
    Options
    Hi,

    You can switch master using:

    PhotonNetwork.SetMasterClient(PhotonNetwork.player);

    and to know that the master was switched, you implement the following method:

    public void OnMasterClientSwitched(PhotonPlayer newMasterClient){}

    Bye,

    Jean