PhotonNetwork.GetRoomsList() Not working (autojoinlobby is on, waited for onJoinedLobby)

There are currently 4+ rooms going. When I call for PhotonNetwork.GetRoomList() AFTER onJoinedLobby(), I get 0 each time (not in a room)

It seems to work *later*, but how later? Is there a callback I'm missing that comes *after* OnJoinedLobby?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @xblade724,

    Rooms list is ready after calls to PUN callback OnReceivedRoomListUpdate(). You can get the rooms list inside that callback.
    Also I assume these rooms are in default lobby or in a lobby with default type.