-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
Please take a look at the code below:
using (var download = Unity.Networking.BackgroundDownload.Start(new Uri(URL), Application.persistentDataPath+"/temp/assets"))
{
while (download.progress <=1.0f)
{
percent = download.progress * 100;
DownloadProgressbar.GetComponent<Progressbar>().SetValue((int)percent);
yield return null;
}
yield return new WaitForSeconds(0.5f);
if (download.status == Unity.Networking.BackgroundDownloadStatus.Failed)
{
Debug.Log(download.error);
}
}
it does not give me the progress of my download operation. also I have used
yield return new download
but it doesn't work.
Please help with a proper documentation.
@aurimasc
@Tak
@lucasmeijer
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels