public void Start()
{
StartCoroutine(LoginIeumerator());
}
private IEnumerator LoginIeumerator()
{
string url = "http://xxxxx.com?username=xx&password=xx";
print(url);
using (UnityWebRequest www = UnityWebRequest.Get(url))
{
yield return www.SendWebRequest();
if (www.error == null)
{
// SceneManager.LoadSceneAsync(1);
print("OK");
//}
}
else
{
print("No");
}
}
}
I am running in the editor without exceptions, but when I package it, Unknown Error appears. What is the reason? I am using the version: 2018.2.3f1
↧