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. Dismiss Notice

Question Addressables system yield different bundle hashes..

Discussion in 'Addressables' started by EduardDraude, Apr 14, 2021.

  1. EduardDraude

    EduardDraude

    Joined:
    Mar 8, 2019
    Posts:
    60
    Hey,

    I try to make a content update via the addressables group window with a .bin file. I just made a fresh (git) checkout on the very same Mac I previously made the initial iOS build. But now some of the generated asset bundles are named with another hash? So my (already deployed) build will not consume the correct local bundles, because the remote catalog points to some different local bundles. Nothing changed in the local bundles. So somehow the generated bundles (and hash) are not deterministic, which breaks the whole system in my point of view. I absoulutley did not expect this.

    I previously made already content updates with the very same git code base and it worked. This happened just with the fresh checkout (delete old project und git clone again the same project)

    Any advise?
     
    apkdev likes this.
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,796
    I'll kick this over to the team for some guidance. Which version of Addressables are you using?
     
  3. EduardDraude

    EduardDraude

    Joined:
    Mar 8, 2019
    Posts:
    60
    Thx! The verified Version 1.16.19 for Unity 2020.3.3f1
     
  4. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    294
    There could be a number of reasons that this hash has changed. If you have changed other data that it relies on etc. Changing the project name where bundle names utilise the project name for example. It is hard to say if this is a indeterministic issue or simply content has changed, Assuming it is indeterminism, your best bet it to find out what Assets have changed. Then look at why that Asset has changed rather than the AssetBundle, you can do this by extracting and comparing the bundles, as described in https://support.unity.com/hc/en-us/articles/217123266-How-do-I-determine-what-is-in-my-Scene-bundle-

    It would be best to follow the content update workflow https://docs.unity3d.com/Packages/com.unity.addressables@1.17/manual/ContentUpdateWorkflow.html if you are updating builds with local content. This ensures the updated catalog uses the same AssetBundles from the built player.
     
    EduardDraude likes this.