Search Unity

Unity 5 Asset bundles can't share data anymore?

Discussion in 'Editor & General Support' started by jpease, Jul 10, 2015.

  1. jpease

    jpease

    Joined:
    Apr 18, 2013
    Posts:
    11
    When I build asset bundles with the new (in Unity 5) system described HERE, it produces bundles that have assets wastefully duplicated between them.

    I've attached a small example project that demonstrates what I mean. It has some test assets and a menu called BUNDLETEST that produces this output for me when building asset bundles out of the same 2 prefabs:
    • Legacy Build: Built 10.0 MB to "bundles/StandaloneWindows/legacy"
    • New Build: Built 18.0 MB to "bundles/StandaloneWindows/new"
    So it seems I'm forced to use the old PushAssetDependencies/PopAssetDependencies methods or else my asset bundles will be much larger than necessary. Am I missing something, or is the new system just not as capable/flexible as the old one?
     

    Attached Files: