BuildAssetBundleOptions.DisableWriteTypeTree 禁用写入类型树
BuildAssetBundleOptions.DisableWriteTypeTree
Description描述
Do not include type information within the AssetBundle.
在资源包不包含类型信息。
Specifying this flag will make an AssetBundle susceptible to script or Unity version changes, but will make the file smaller and a bit faster to load. This flag affects only AssetBundles for platforms that have type information included by default. Mobile and console platform always build without type information. Type information must be present for Web platforms, therefore Unity will reject to build an AssetBundle if you specify this flag when building for BuildTarget.WebPlayer, for example.
指定这个标识将使资源包易被脚本或Unity版本改变,但会使文件更小,更快一点加载。这个标识只影响默认包含的类型信息的平台资源包。移动和家用机平台总是不编译类型信息。类型信息必须是当前web平台,如果当编译BuildTarget.WebPlayer时,指定这个标识,因此Unity将拒绝编译资源包。
参见:BuildPipeline.BuildAssetBundle.