The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

I want to update a room list.

2022-08-10 07:02:23

Hello Guys,

A room list needs to update without creating or removing a room for OnRoomListUpdate callback, well do you have any idea for it?

In someone's question and answers, I've found there's no way the update with a method like refresh button due to that the game can be busy.

However, a player can't see any room if the change is intermittently.

And I don't get how to use GetCustomRoomList with sqlLobbyFilter.

Thanks for reading.


2022-08-10 07:33:14

Below, it works with GetCustomRoomList, but OnRoomListUpdate is not working.

It's for update a room list when someone start a scene right then.

2022-08-10 14:59:32

I don't understand what is needed, sorry.

When you join a lobby, you get a room list and updates for it. This actually means you need to keep the initial list and update it. This means your code is control of knowing the complete list anytime you are in a lobby and you can use that to update any view of it.

The lobby's list is pushed to the clients and there is no way to ask for it (unless you use SQL lobbies, which don't send the updates but you can ask it to find a random room with more precise filtering or ask for a custom list).

Back to top