文档

Unity Engine

Unity Engine

CollectDependencies

Includes all dependencies.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. This has been made obsolete. It is always enabled in the new AssetBundle build system introduced in 5.0.
CollectDependencies = 2

Remarks

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.