I have to get an array from an URL and i am using yield www. When i run the application in game mode it works but when i run it on the server my data doesn’t show.
function Start(){
StartCoroutine("getData");
}
function getData(){
var www : WWW = new WWW("adress");
yield www;
myHash = eval(www.text);
//yield WaitForSeconds(1.0);
}
function OnMouseDown(){
gameObject.Find("wallName").guiText.text = myHash[wallName];
}
I tried without coroutine and the same result : ok in unity, nothing online.