how to check how many clients are connected to photon server?

hi all, im developing a unity game using photon server(self hosted) i want to view in the scene how many clients connected to the server.
thank you.

Comments

  • Hi you, for each player connect to server you can add this player to array on server and if client request how many people, you can send event Count in this array.
  • PhotonNetwork.countOfPlayers
  • There are a lot of counting of players in PhotonNetwork in room in game etc i hope it would be good for you :)