Search Unity

Bug Unity adds Unity version to the AssetBundle when using AssetBundle.RecompressAssetBundleAsync

Discussion in 'Asset Bundles' started by vectorized-runner, Jan 31, 2023.

  1. vectorized-runner

    vectorized-runner

    Joined:
    Jan 22, 2018
    Posts:
    398
    1. Build AssetBundles with 'UncompressedAssetBundle | AssetBundleStripUnityVersion' option
    2. Build AssetBundles with 'None | AssetBundleStripUnityVersion' option
    3. Use AssetBundle.RecompressAssetBundleAsync using 'UncompressedRuntime' option to decompress the (1) bundle. Compare it with (2), it has only one difference, the AssetBundle starts with the Unity version again.
     
  2. AndrewSkow

    AndrewSkow

    Unity Technologies

    Joined:
    Nov 17, 2020
    Posts:
    91