文档

Unity Engine

Unity Engine

contentSummary

Retrieve statistics about the content of the build, such as total sizes, object counts, and breakdowns by Unity object type and source asset.
阅读时间1 分钟最后更新于 1 个月前

Definition

public ContentSummary contentSummary { get; }

Remarks

ContentSummary is populated for Player builds, AssetBundle builds, and ContentDirectory builds. It is not populated for scripts-only Player builds (see BuildOptions.BuildScriptsOnly). For incremental AssetBundle builds, the statistics only reflect the AssetBundles that were rebuilt in the current build invocation; unchanged AssetBundles reused from previous builds are not included. This property returns
null
if the ContentSummary was not populated.
Additional Resources: ContentSummary