Getting current CloudServerRegion?
Options
GarethIW
✭
Just a quickie! Is it possible to get the CloudServerRegion of the server that PUN is currently connected to?
0
Comments
-
Use PhotonNetwork.networkingPeer.CloudRegion to get currently connected region.0
-
Thanks! Will that string parse to the CloudServerRegion enum?
edit: tried this, and PhotonNetwork.networkingPeer.CloudRegion seems to be null (tried in OnConnectedToPhoton and after a couple of minutes in Update it's still null)0 -
Will that string parse to the CloudServerRegion enumPhotonNetwork.networkingPeer.CloudRegion seems to be null
What is the client state when you check property?
Do you use name server?
Is your version of PUN latest?0 -
Thanks Vadim,
Just needed to update to latest, all working now!0