Room List
Options
Hi! What is the difference between PhotonNetwork.countOfRooms and PhotonNetwork.GetRoomList().Length? I created a room but on other devices (not in the room, connected to master) it shows changes in PhotonNetwork.countOfRooms but not PhotonNetwork.GetRoomList().Length. PhotonNetwork.GetRoomList().Length is always zero and PhotonNetwork.GetRoomList() is always empty. I would like to get the list of rooms available, am I doing anything wrong?
0
Comments
-
Hi,
GetRoomList() documentation states that the method is available and updated while in a lobby.
From countOfRooms doc: The count of rooms currently in use (available on MasterServer in 5sec intervals).
So both will work only when client is joined to a lobby.0 -
THANK YOUUU!! I didn't join any lobby... It works now0