- Home /
(Asset Bundle) Skip building dependency bundles when building a bundle.
Hi,
As I have read, to build asset bundles that shares dependency, one must use the BuildPipeline.PushAssetDependencies and BuildPipeline.PopAssetDependencies system.
However, if a dependency bundle is already build, say a shared material and texture bundle, How do you avoid rebuilding this bundle everytime we create a new asset bundle or update an asset bundle that references the shared material and texture?
E.G.
BuildPipeline.PushAssetDependencies()
??? What to do here to get BuildPipeline's state to setup the shared bundle without building ???
BuildPipeline.PushAssetDependencies()
BuildPipeline.BuildAssetBundle() // build new/updated bundle that shares prebuild bundle.
BuildPipeline.PopAssetDependencies()
BuildPipeline.PopAssetDependencies()
Answer by Lf3THn4D · Nov 26, 2013 at 04:34 PM
To answer my own question. It's impossible. You MUST build all dependent bundles regardless if you have already build it or not.
Would be really cool to have a function like: BuildPipeline.SimulateBuildAssetBundle() which simulates the building process without actually writing to disk.
Your answer
![](https://koobas.hobune.stream/wayback/20220613102029im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to import the object from server to unity 2 Answers
Why does building bundles cause unload unused assets to be called? 1 Answer
How do you properly load Asset Bundles with dependencies? 3 Answers
Serialized scene information 0 Answers
How to correctly set bundle build order when building resources tree. 0 Answers