How do I get the list of currently created lobbies and the number of players per lobby?

I want to create multiple lobbies and distribute players to other lobbies if there are 100 players in the lobby.

What method should I use to obtain a list of currently created lobbies and the number of players per lobby?

Answers

  • In Photon terms, you want 100 players per "room". You just set MaxPlayers, when you create a room and let Photon do the matchmaking by calling JoinRandomRoom.

    There is a doc page about matchmaking in PUN.

    That aside, PUN is not built to support 100 players in a room. Use Fusion.