Skip to content

Instantly share code, notes, and snippets.

@flushpot1125
Created April 27, 2017 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flushpot1125/d830337b1932c5d3860b755065533119 to your computer and use it in GitHub Desktop.
Save flushpot1125/d830337b1932c5d3860b755065533119 to your computer and use it in GitHub Desktop.
IEnumerator getImage() {
string urlText="http://test.com";
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