Room custom properties

Options
Is there any way such that the player, who had created the room, can know someone has started joining the same room?

Comments

  • Gumiho
    Options
    Hi !
    Yes, you can use the "OnPhotonPlayerConnected" callback. This one provide a PhotonPlayer object which is the player who joined the room.

    Here's an use example :

    public override OnPhotonPlayerConnected(PhotonPlayer player) { Debug.Log(player.NickName + " joined the room !"; }

    To know if someone left the room, you can use "OnPhotonPlayerDisconnected" callback in the same way.

    Hope that helps :smile: