Skip to content

Get the progress in iOS #10

@saparkhid-isimorgh

Description

@saparkhid-isimorgh

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions