JoinRandomRoom() in specific lobby
Options
How can I join random room in specific lobby? How to do this without expected parameters?
0
Comments
-
Hi @VityaSchel,
In Photon rooms can be joined in three ways:
1- after creating it.
2- by joining it via its room name: rooms names are unique across all lobbies of the same virtual application on the same cluster.
3- randomly, optionally using filters. Random matchmaking happens per lobby that you provide. This happens by calling JoinRandomRoom:
JoinRandomRoom w/o lobby parameters:
- if not joined to a lobby: tries to join a random roomacross ALL lobbiesin the default lobby.
- if joined to a lobby: tries to join a random room in the currently joined lobby
JoinRandomRoom w/ lobby parameters --> tries to join a random room on the specified lobby (no matter if joined to a lobby or not).
Any lobby that has a null or empty name will be considered as the default lobby.
The default lobby has no name and its type is "Default".0