- Home /
problems with WWW [Solved]
hello everyone im trying to download a .txt file but i got this as result, and in my txt i only have an "8" here is the code
WWW www = new WWW(BundleUrl + "/version.txt");
yield return www;
Debug.Log (www.text);
if (!string.IsNullOrEmpty(www.error)) {
df.text = www.error;
throw new UnityException("error " + www.error);
}
else {
Version = int.Parse (www.text);
}
What is the value of BundleUrl
please ?
Are you sure the file exists ?
i solved the problem with this links http://answers.unity3d.com/questions/1130537/wwwurl-errorthis-site-requires-javascript-to-work.html
http://answers.unity3d.com/questions/1041979/downloading-text-from-web-gives-html-code.html
this happens because i was using a free hosting
Answer by isaialv · Apr 17, 2016 at 12:45 AM
http://answers.unity3d.com/questions/1130537/wwwurl-errorthis-site-requires-javascript-to-work.html
http://answers.unity3d.com/questions/1041979/downloading-text-from-web-gives-html-code.html
i was using a free hosting so they use a "antibot system" and i cant acces to my files from unity
Your answer
Follow this Question
Related Questions
Supplying downloadable data 0 Answers
Empty Error DownloadHandler 0 Answers
Coyote model missing in Locomotion System 2 Answers
Downloadable Content? 1 Answer
What is the download size of updating from version 2019.3 to 2019.4.1f1? 0 Answers