playMaker

Author Topic: How to get PUN 2 room list?  (Read 816 times)

RC

  • Full Member
  • ***
  • Posts: 148
How to get PUN 2 room list?
« on: December 17, 2021, 10:46:27 AM »
I was wondering if anyone manage to get pun2 room list info?

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: How to get PUN 2 room list?
« Reply #1 on: January 30, 2023, 01:23:45 PM »
I don't know if you fund the soluce but I'm also facing the same problem, and the only clue I fund is on the Photon site:

https://doc.photonengine.com/en-us/pun/current/getting-started/migration-notes

In short:
PUN Classic (v1), PUN 2 and Bolt are in maintenance mode. We will support Unity 2022 with PUN 2, but no new features will be added. Of course all your PUN & Bolt projects will continue to work and run with the known performance in the future. For any upcoming or new projects: please switch to Photon Fusion or Quantum.

API Changes

PhotonNetwork.GetRoomList() is gone. You get rooms list and updates from ILobbyCallbacks.OnRoomListUpdate(List<RoomInfo> roomList) callback. You can optionally cache it, update it and clear it when needed. See snippet here.