Region is none
Options
Hi, I'm trying to get a list of regions for players. I've manage to get 'a' list, but there is an issue:
http://i.imgur.com/lLcm2pb.png
As you can see many of the regions are 'none. This is the code I'm using:
if (networkingPeer.AvailableRegions != null)
{
foreach (Region region in networkingPeer.AvailableRegions)
{
regionText += region.Code + " (" + region.Ping + ")" + "\n";
}
text.text = regionText;
Debug.Log("regions=" + regionText);
}
and in my Start() function:
networkingPeer = PhotonNetwork.networkingPeer;
networkingPeer.ConnectToNameServer();
StartCoroutine(PhotonHandler.SP.PingAvailableRegionsCoroutine(false));
Any idea why the region codes are coming back as 'none' ?
http://i.imgur.com/lLcm2pb.png
As you can see many of the regions are 'none. This is the code I'm using:
if (networkingPeer.AvailableRegions != null)
{
foreach (Region region in networkingPeer.AvailableRegions)
{
regionText += region.Code + " (" + region.Ping + ")" + "\n";
}
text.text = regionText;
Debug.Log("regions=" + regionText);
}
and in my Start() function:
networkingPeer = PhotonNetwork.networkingPeer;
networkingPeer.ConnectToNameServer();
StartCoroutine(PhotonHandler.SP.PingAvailableRegionsCoroutine(false));
Any idea why the region codes are coming back as 'none' ?
0
Comments
-
And my debug output (in text):
regions=
eu (168)
us (100)
none (54)
none (100)
asia (193)
jp (117)
au (206)
none (218)
0 -
Hi @again,
You're using an old PUN version.
3 different regions were added lately.
Check them all in this page: https://doc.photonengine.com/en-us/pun/current/reference/regions0 -
Ah, thanks, updating totally worked!0