I need to download image from server and show in sprite. All example I can find recommended next code
WWW www = new WWW(requestUrl);
yield return www;
onTextureLoaded(www.texture,id);
But I cant find the way how should I handle exceptions in this case. Should I add Try catch Or there any wat to check if request was successful?
Aucun commentaire:
Enregistrer un commentaire