Lobby states Update

Options
Hello,
In my game different types of lobby available.if any method available which show how many players inside particular lobby.
I am already trying OnLobbyStatisticsUpdate method for get update but its only called one time when i connect to master server.
i need like that,
Lobby Name Player Counter
Lobby_1 10
Lobby_2 15
etc..

Thanks in advance

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @UnityGames,

    To get LobbyStats you need to be connected to MasterServer.
    While connected to MasterServer, you will automatically and periodically receive the LobbyStats event if you set PhotonNetwork.EnableLobbyStatistics = true before connecting.
    The lobby stats event should contain the information you need.
  • Hello JhonTube,
    I am already set PhotonNetwork.EnableLobbyStatistics = true
    So,its give me only one time update at starting but i want every time update when new user connect or disconnect to particular lobby,like PhotonNetwork.countOfPlayers update data.
    Thanks