How to get a list of rooms?
Options
Hey all, I've been trying to create a room browser using GetRoomList and apparently it's been deprecated, how can I get a list now?
0
Answers
-
Bump0
-
Hi @LeytonMate,
GetRoomList
is removed in PUN2. Are you using PUN2?
If yes, then as mentioned in the "Migration Notes":You get rooms list and updates fromILobbyCallbacks.OnRoomListUpdate(List<RoomInfo> roomList)
callback. You can optionally cache it, update it and clear it when needed.0 -
@JohnTube I'm using PUN10
-
@JohnTube hello?0
-
I've done all of that, the players are in the same lobby. For some reason GetRoomList still returns nothing even though the room is in the same region and same version. Did I miss a step?0
-
They're also both in a default lobby0
-
I'll send my code when I get home0
-
@JohnTube I heard I have to use OnReceivedRoomListUpdate, still doesn't work0