Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

Can't use UnityWebRequest in WebGL build

$
0
0
It just gives me an unknown error. Here's the code: UnityWebRequest www = UnityWebRequest.Get("http://cool-levels.x10.mx/Levels/" + id + ".txt"); yield return www.SendWebRequest(); returnValue = "Not found"; if (www.result != UnityWebRequest.Result.Success) { Debug.LogError(www.error); } else { returnValue = www.downloadHandler.text; } It works fine in the editor.

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>