How does the master client know others players joined room?

I would like others players joined room after master client will receive callback.

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Frp529,

    Thank you for choosing Photon!

    There is a callback when another remote player joins the room: IInRoomCallbacks.OnPlayerEnteredRoom(Player newPlayer).
    There is a callback when the local player joins the room: IMatchmakingCallbacks.OnJoinedRoom().
    To get the list of all players in the room: PhotonNetwork.CurrentRoom.Players.
    To know if a player is MasterClient or not: Player.IsMasterClient.