Search Unity

Asset Bundle Dependencies with Build Maps

Discussion in 'Asset Bundles' started by leevermeulen, Jul 11, 2017.

  1. leevermeulen

    leevermeulen

    Joined:
    Sep 17, 2014
    Posts:
    6
    I am building asset bundles individually with separate calls to BuildAssetBundles.

    From what I can tell, Asset bundles are only marked as a Dependency if they are built in the same 'BuildAssetBundles' call.

    Is this intended? And if so is there anyway for a asset bundle to be built after it's dependency is built (and then include it as a dependency)
     
  2. Ryanc_unity

    Ryanc_unity

    Unity Technologies

    Joined:
    Jul 22, 2015
    Posts:
    332
    Hey @leevermeulen

    This is indeed intended behavior with the current build pipeline. This is due to the dependency calculation step being part of the build call, so if the `BuildAssetBundles` does not have that bundle, it can't properly mark it as a dependency. This will be changing in the refactored build pipeline we are working on currently though that's not due to be released until 2018.1.
     
    tonialatalo likes this.