Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question [1.11.2]AssebundleCache is invalid

Discussion in 'Addressables' started by m-nakayama, Jul 8, 2020.

  1. m-nakayama

    m-nakayama

    Joined:
    Jun 12, 2018
    Posts:
    14
    hi

    I updated to 1.11.2 from 1.7.5.
    So, GetDownloadSize() coundn't get correct download size.
    It coundn't exclude cached files.

    CacheDirectory had .bundle files.
    But .bundle files cannot be a AssetbundleCache.

    CreateWebRequest() in AssetbundleProvider.cs, Is this really correct?
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,799
    Let me flag this for the team to provide some insight.
     
  3. davidla_unity

    davidla_unity

    Unity Technologies

    Joined:
    Nov 17, 2016
    Posts:
    736
    Just a couple questions: 1) Did GetDownloadSize work correctly for you on 1.7.5? and 2) What makes you say that .bundle files cannot be an AssetBundleCache? I would say the opposite.
     
  4. m-nakayama

    m-nakayama

    Joined:
    Jun 12, 2018
    Posts:
    14
    1) GetDownloadSize works correctly on 1.7.5.
    2) Different data is placed in versions 1.10.0 and 1.11.2.

    in cache directory
    for example "common_assets_all.bundle"
    1.10.0)
    common_assets_all(directory) - common_assets_all(directory) - _data(file) and _info(file)

    1.11.2)
    common_assets_all.bundle

    I suspect that GetDownloadSize() does not recognize the .bundle file as a cache.
     
    Last edited: Jul 14, 2020
  5. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,799
    Thanks for the additional context! Looks like the time has identified the issue, and will be rolling out a fix in the next release.