Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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