Version: 2022.1
LanguageEnglish
  • C#
Method group is Obsolete

BuildAssetBundleOptions.CollectDependencies

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Obsolete This has been made obsolete. It is always enabled in the new AssetBundle build system introduced in 5.0.

Description

Includes all dependencies.

This follows all references to any assets, game objects or components and includes them in the build.

This flag is only taken into account when calling the obsolete BuildPipeline.BuildAssetBundle method. When calling BuildPipeline.BuildAssetBundles this flag is ignored because references are always followed.