Get the list of available rooms

Options
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

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    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.
  • KubbyDev
    KubbyDev
    edited March 2019
    Options
    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."