Search Unity

[Bug][1.1.4] GetDownloadSizeAsync is always return the same value for Android

Discussion in 'Addressables' started by nonamenanasisan, Jun 21, 2019.

  1. nonamenanasisan

    nonamenanasisan

    Joined:
    May 17, 2019
    Posts:
    3
    The method for determining whether the URL is remote is incorrect.
    (On Android, the path of the local file is `jar: file: /// ~` but it is not considered).

    Workaround
    AssetBundleProvider.cs line 91

    Code (CSharp):
    1. if (!loc.InternalId.Contains("://"))

    Code (CSharp):
    1. if (!loc.InternalId.StartsWith("http"))
     
  2. unity_bill

    unity_bill

    Joined:
    Apr 11, 2017
    Posts:
    1,053
    Thanks, that fix does seem reasonable.
     
    nonamenanasisan likes this.