I am using PUN2 for my game and I am using the OnRoomListUpdate()
function to sync my UI with the rooms that are available to players when they are in the lobby. The room lists come back from Photon just fine until I switch regions. If I switch regions and rejoin the lobby, I get the OnRoomListUpdate()
event but no rooms are handed back for that region when I know I have rooms open. Below is the code I have for switching regions:
public void ConnectToRegion(string region)
{
PhotonNetwork.Disconnect();
PhotonNetwork.PhotonServerSettings.AppSettings.FixedRegion = region;
if (!PhotonNetwork.ConnectUsingSettings())
{
Debug.LogError("Unable to connect.");
}
else
{
PhotonNetwork.JoinLobby();
currentRegionText.text = $"Current region: {region}";
}
}