Get the list of available rooms
Options
KubbyDev
✭
Hello
When I first tried to implement a list of available rooms in my game, I saw on the internet that there was a function called GetRoomList for that.
But on my computer this function doesn't exist. I tried to install Photon again but it still doesn't work, and I didn't find anything related to my problem.
I have PUN v2.5
When I first tried to implement a list of available rooms in my game, I saw on the internet that there was a function called GetRoomList for that.
But on my computer this function doesn't exist. I tried to install Photon again but it still doesn't work, and I didn't find anything related to my problem.
I have PUN v2.5
0
Comments
-
Hi @KubbyDev,
Thank you for choosing Photon!
You are using PUN2,GetRoomList()
is from PUN1 and was removed in PUN2 as you can read on the "Migration Notes".
You can find answers when you search "GetRoomList" on the forum.
0 -
Ok thank you, I was suspecting something like that but I didn't find anything on the internet
So, for the people who will see this later, here is what you are searching for (from the migration notes):
"PhotonNetwork.GetRoomList() is gone. You get rooms list and updates from ILobbyCallbacks.OnRoomListUpdate(List roomList) callback. You can optionally cache it, update it and clear it when needed."0