Hi,
We want to control AvailableRegions from our server. we are fetching region codes from our server and then using PUN code to ping regions. I am able to do that using below code
The only problem is that we can't get PhotonNetwork.networkingPeer.AvailableRegions without connecting to Name server which then connects to best region automatically. Is there a way to avoid connecting to best after calling ConnectToNameServer or directly get AvailableRegions.
thanks
We want to control AvailableRegions from our server. we are fetching region codes from our server and then using PUN code to ping regions. I am able to do that using below code
PhotonNetwork.PhotonServerSettings.HostType = ServerSettings.HostingOption.BestRegion;
PhotonNetwork.PhotonServerSettings.EnabledRegions = MyServer.AvailableRegionsFlag;
if(null == PhotonNetwork.networkingPeer.AvailableRegions)
PhotonNetwork.networkingPeer.ConnectToNameServer();
else
StartCoroutine(PhotonHandler.SP.PingAvailableRegionsCoroutine(false));
PhotonNetwork.Disconnect();
The only problem is that we can't get PhotonNetwork.networkingPeer.AvailableRegions without connecting to Name server which then connects to best region automatically. Is there a way to avoid connecting to best after calling ConnectToNameServer or directly get AvailableRegions.
thanks