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
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
0
Comments
-
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 setPhotonNetwork.EnableLobbyStatistics = true
before connecting.
The lobby stats event should contain the information you need.0 -
Hello JhonTube,
I am already setPhotonNetwork.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,likePhotonNetwork.countOfPlayers
update data.
Thanks
0