Created
April 27, 2017 19:44
-
-
Save flushpot1125/d830337b1932c5d3860b755065533119 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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