Answers for "unity check for internet connection"

C#
2

unity check for internet connection

//REACHABLE VIA LOCAL NETWORK OR CARRIER DATA
if (Application.internetReachability != NetworkReachability.NotReachable)
{
     Debug.LogWarning("Connected to WiFi or Carrier network");
}
Posted by: Guest on April-24-2021
-2

unity test network connection

if (Application.internetReachability == 0) //Not reachable at all
        {
            Debug.LogWarning("No internet connection");
        }
        
if (Application.internetReachability == 1) //Reachable via Carrier data network
        {
            Debug.LogWarning("Connected to mobile carrier");
        }

if (Application.internetReachability == 3) //Reachable via WiFi
        {
            Debug.LogWarning("Connected to WiFi");
        }
Posted by: Guest on November-17-2020

Code answers related to "unity check for internet connection"

C# Answers by Framework

Browse Popular Code Answers by Language