Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
IEnumerator getImage() {
string urlText="";
WWW www = new WWW(urlText);
yield return www;
if (!string.IsNullOrEmpty(www.error)) {
Debug.LogError(string.Format("Fail!\n{0}", www.error));
yield break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment