AssetBundle implements assets from other referenced assetbundle.

I’m using Unity 5.4.3f1 and what I describe worked in previous versions.

So I have the following:

  • A SpriteTexture asset WITH an assetbundle tag
  • A prefab named “AtlasHolder” WITHOUT an assetbundle tag, that references this texture asset via a public Texture2D field
  • A prefab named “OtherPrefabHolder” WITH an assetbundle tag, that references the AtlasHolder prefab via a public GameObject field.

So when I build the assetbundles I have the following assetbundles:

  • texture_atlas
  • prefab_holder

using older versions of Unity texture_atlas contained the texture, of course, and prefab_holder only contained the reference to the texture, so its filesize was about 1kB.

But with the new Unity version I can see that my_prefab also contains the texture since it has the same size as the complete texture assetbundle.

Are you aware of this issue?

Ok, more infos:

It doesn’t work with Unity 5.4.1f1 either but it works with Unity 5.3.6p5.