- Home /
 
Addressables: PercentComplete did not started from 0 and suddenly reach 1
Hi everyone, I wonder why PercentComplete started from 0.5 and after some time after reaching aprox 0.75 it goes up to 1 directly ?
     void Start()
     {
        StartCoroutine(OnLoad(Addressables.DownloadDependenciesAsync("Prefabs")));
 
     }
     IEnumerator OnLoad(AsyncOperationHandle obj)
     {
         while (obj.IsDone == false)
         {
             yield return new WaitForSeconds(.1f);
             progressImg.fillAmount = obj.PercentComplete;
             percentCopmlete1.text = obj.PercentComplete * 100f + "%".ToString();
         }
         
     }
 
 
 
              Answer by DhiaSendi · Mar 09, 2021 at 04:58 PM
Solved by just changing "obj.PercentComplete" by "obj.GetDownloadStatus().Percent"
 IEnumerator OnLoad(AsyncOperationHandle obj)
      {
          while (obj.IsDone == false)
          {
              yield return new WaitForSeconds(.1f);
              progressImg.fillAmount = obj.GetDownloadStatus().Percent;
              percentCopmlete1.text = obj.GetDownloadStatus().Percent * 100f + "%".ToString();
          }
          
      }
 
              Wow! this solved the problem I was trying to solve for a very long time! Very bad documentation from Unity though, they should mention this kind of things.
Answer by aka3eka · Feb 17, 2020 at 01:16 PM
I have the same situation when loading bundles from server: it starts from 0.0, then gets stuck at 0.5 for almost all the time of a bundle being downloaded and in the end quickly jumps to 0.77, 0.95 and then to 1.0.
Answer by cassius · Feb 26, 2021 at 01:14 AM
Has anyone solved this issue yet? Nearly a year later and it still seems to happen in the current Addressables version.
Answer by OnlyTheCosmos · Sep 27, 2021 at 03:47 PM
Still happening, Unity 2021.1.6, for me the file completes just fine if the complete size of the build folder is under 100 mb...
Your answer