Search Unity

[0.8.6] GetDownloadSize () Does Not Return Correct Value on Android

Discussion in 'Addressables' started by nonamenanasisan, May 17, 2019.

  1. nonamenanasisan

    nonamenanasisan

    Joined:
    May 17, 2019
    Posts:
    3
    How to fix.

    AssetBundleProvider.cs

    [Incorrect]
    Code (CSharp):
    1.         public virtual long ComputeSize(IResourceLocation loc)
    2.         {
    3.             if (!loc.InternalId.Contains("://"))
    4.                 return 0;
    [Correct]
    Code (CSharp):
    1.  if (!loc.InternalId.StartsWith("http"))

    Please fix it.
     
    chanon81 likes this.