Setting up a GUI System for room selection , Multiplayer (Photon/Unet)

I am trying to make a GUI system for Multiplayer Room Selection for some multiplayer card game I am trying to develop. I am using photon - But I can’t any Documentation / any online reference about that .
Can Anyone help and guide me ? Pointing towards any tutorial or any documentation will be a massive help . Photon tutorials are preferable , but Unet Tutorials are also welcome… .

Hi,

in PUN you can implement the OnReceivedRoomListUpdate() callback. This notifies the client that the local room list has been updated. From this callback you can iterate through the room list to by using PhotonNetwork.GetRoomList() to see all available rooms. This looks like the following:

foreach (RoomInfo info in PhotonNetwork.GetRoomList())
{
    // Do something
}

By accessing the info you have information about the room name, player count, max players and custom properties which you can display on your UI. The properties are important for filtering rooms, e.g. by map. To make them available to the lobby I would recommend you taking a look at the ‘Not So Random Matchmaking’ section of the Matchmaking guide. To display a room, you can for example instantiate an UI prefab for each available room info which displays the most important things for your game.