Is there a way to slow down the download via WWW? I tried network emulation but that is not working.
Also is there a way to get the filesize of my download or do I have to write that in a text file for instance next to the file? I talk about an assetBundle that I download.
Here is what i did and it seems to be correct:
using (WWW www = new WWW(path))
{
while (!www.isDone)
{
DownloadProgress = www.bytesDownloaded;
float v = www.progress <= 0 ? 0.0001f : www.progress;
Filesize = (int)(DownloadProgress / v);
if (www.error != null)
{
CurrentDownloadState = EDownloadState.Error;
break;
}
yield return null;
}
[...]
}