Search Unity

How can I view why an asset bundle is dependent on another

Discussion in 'Asset Bundles' started by mr-bulldops, Jun 26, 2018.

  1. mr-bulldops

    mr-bulldops

    Joined:
    Dec 2, 2016
    Posts:
    10
    I was wondering if there was an easy way to see exactly why an assetbundle is dependent on another? I didn't see anything in the asset bundle browser and couldn't find anything in the documentation.

    Unity Version: 2017.4.1f1

    Thanks
     
  2. AlienMe

    AlienMe

    Joined:
    Sep 16, 2014
    Posts:
    72
    We haven't found an easy way to do this. IMO, the Asset Bundle system works as a magic black box, where you don't have any visibility into what goes where, and why.

    Assuming you have 2 bundles, A and B, and you want to find out why Bundle B depends on A:

    What we have tried in the past:
    1) (Making sure you have everything in Git, or backed up), remove Bundle A, and then in the Bundle Browser you can see which assets are auto-included.

    2) In another case, we modified the source code for Asset Bundle Browser, to print to the console when a dependency was making it list another bundle in the browser window. This would produce a lot of output, but then you could dig and find out the culprit.

    Both options are primitive and cumbersome.
     
  3. hromoyDron

    hromoyDron

    Joined:
    Jan 24, 2013
    Posts:
    71
    Is there any progress on this topic?