Search Unity

AssetBundels builds in between Unity versions

Discussion in 'Editor & General Support' started by tomerpeledNG, Apr 23, 2018.

  1. tomerpeledNG

    tomerpeledNG

    Joined:
    Jul 14, 2017
    Posts:
    81
    Hi,

    It seems that the AssetBundles files holds Unity version inside them on the first line.

    This is a bit problematic for us, cause we are relying on the files checksum (we are calculating it with crc32c) in order to serve only the delta asset bundles each time.

    The version, which is included in the AssetBundle file, will cause us to serve all of our asset bundles to our users whenever we are updating the unity version and have to build asset bundles (without updating the app).

    Is there something that we are missing? Is there ability to remove this metadata from the AssetBundles during the assets build?

    If not, how do you recommend to identify if an asset bundle need to be re-downloaded, due to a new version?
     
  2. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,687
    You can't mix asset bundles between Unity versions, can you? That would be why the Unity version is on the first line.

    I'm not currently using asset bundles, so maybe my understanding is not correct or is outdated.
     
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    The asset bundle file format allows for sharing between Unity versions. That doesn't help though if the new Unity version changed the way it handles the specific content you're including in your bundles, which would then require you to create new bundles regardless.
     
  4. tomerpeledNG

    tomerpeledNG

    Joined:
    Jul 14, 2017
    Posts:
    81
  5. hopeful

    hopeful

    Joined:
    Nov 20, 2013
    Posts:
    5,687
  6. tomerpeledNG

    tomerpeledNG

    Joined:
    Jul 14, 2017
    Posts:
    81