i have an image that loads in my app through a URL, it is possible to have a loading bar, showing that is loading the image?
here is the script that i use.
i have an image that loads in my app through a URL, it is possible to have a loading bar, showing that is loading the image?
here is the script that i use.
WWW imgLink = new WWW (url);
//call a coroutine between these lines
StartCoroutine(TrackProgress(imgLink));
yield return imgLink;
// heres your coroutine
IEnumerator TrackProgress(WWW imgLink){
while(!imgLink.isDone){
valueToScaleFrom0to1 = imgLink.progress;
yield return new WaitForSeconds(.1f);
}
}