- Home /
Pause a download
Hello everyone.
I'm using the regular way of downloading bundles (WWW.LoadFromCacheOrDownload inside a coroutine).
I was wandering, is there a way to pause the download to be resumed later?
I have triad to pause the coroutine in many different ways, non seem to effect the download.
The only way I could pause the download, is by setting the entire script.enabled to false.
This did pause the download, but I could not resume it.
So, any ideas of how can this be done?
Thanks!
I believe you can only cancel a download with the WWW class by calling Dispose on the WWW you get from when you call LoadFromCacheOrDownload.
You won't, however, be able to resume this download.
Okay, this was all I was currently able to do. Thanks!
Hey, reviving this question because I stumbled upon a strange behavior.
When calling WWW.Dispose() unity freezes up (this is on 4.5).
This happens on both editor and a widows phone 8.
Answer by Ed unity · Mar 28, 2014 at 06:40 PM
It is not possible to pause and resume the download later with either dispose or with enabling and disabling the object. You can only cancel the download and then restart the download at a later time.
Your answer
Follow this Question
Related Questions
Downloading files in the Editor 2 Answers
iOS download files and store to local drive 4 Answers
downloading file, saving on android 1 Answer
Difference in downloaded www.byte.length on iOS vs PC 1 Answer