Quantcast
Channel: Questions in topic: "webrequest"
Viewing all articles
Browse latest Browse all 387

Android crashes while receiving multiple files from UnityWebRequest

$
0
0
Hi guys, i have a problem puzzling me for some days. Basically i have created a grid of sprites and i am downloading many pictures from the web. The problem is that my app crashes if i download many of them ( 150 or so). I am receining the picture using the UnityWebrequestTexture and then DownloadHandlerTexture. After that i apply it to the sprite and then i save it to the device storage using File.WriteAllbytes. I tried using delay ( IEnumerator for each request with a delay of 1 sec but even then it crashes. I saw somewhere that this is issue has to do with memory usage and i should use streams. Any ideas? thanks in advance

Viewing all articles
Browse latest Browse all 387

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>