Answers for "unity Wi-Fi network to which the device is connected"

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 Wi-Fi network to which the device is connected"

C# Answers by Framework

Browse Popular Code Answers by Language