Answers for "unity check if device has wifi"

C#
1

unity check if device has wifi

public bool internetConnectivity()
    {
        UnityWebRequest request = UnityWebRequest.Get("https://www.google.com/");
        request.SendWebRequest();

        if (request.error != null)
        {
            Debug.LogWarning("No internet connection");
            return false;
        }
        else
        {
            return true;
        }
    }
Posted by: Guest on November-17-2020

Code answers related to "unity check if device has wifi"

C# Answers by Framework

Browse Popular Code Answers by Language