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.

最后修改:2011年10月2日 Sunday 10:19

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。