How to get the number of users that currently playing
Options
4ipideil
✭
Hi guys, I wanna get current total users count that currently playing in my game, is there any chance to get that number?
I wanna check whenever the photonServer is overflowed (consider my CCU) to force every next users to play with bots. Any ideas?
I wanna check whenever the photonServer is overflowed (consider my CCU) to force every next users to play with bots. Any ideas?
0
Comments
-
Hi,
When client is connected to the master server (or joined to the lobby), PhotonNetwork.countOfPlayersOnMaster and PhotonNetwork.countOfPlayersInRooms properties available. The sum of them is total players connected via this region master server. If several regions used, you need query each master separately.0