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 Addressables hash changes

Discussion in 'Addressables' started by tokamot, Feb 24, 2023.

  1. tokamot

    tokamot

    Joined:
    Aug 10, 2018
    Posts:
    7
    Translated at DeepL

    I created an AssetBundle using Addressables.
    A few days later, I updated some scripts and rebuilt them with Addressables.
    The contents of the AssetBundle for the data I did not change changed.
    Bytes were the same.
    Is this normal?
    And if so, could you please tell me why this is happening?

    Additional information
    BundleMode is PackTogether.
    I have adjusted the contents of the script that I added to the prefub in the changed AssetBundle.
    I tried the above in a simple environment, but just changing the CS file did not change the AssetBundle.
    CPU is Ryzen.

    Thank you in advance for your help.
     
    Last edited: Feb 24, 2023
  2. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    294
    This should not change.
    There are some indeterminism issues with Shaders, but doesn't seem like thats what you are getting.
    Best course would be a bug report
     
  3. tokamot

    tokamot

    Joined:
    Aug 10, 2018
    Posts:
    7
    Thank you.
    I looked at the history of the subversion.
    The only change was in the CS file.

    I will look into this on the assumption that it will not change.
     
  4. coldlogic

    coldlogic

    Joined:
    Feb 16, 2021
    Posts:
    7
    I have experienced this as well. The hash of the bundle file containing the MonoBehaviour script attached to a prefab changes when the script changes.
     
    tokamot likes this.
  5. tokamot

    tokamot

    Joined:
    Aug 10, 2018
    Posts:
    7
    coldlogic.
    Thanks for the information.