Version: 2020.3

ContentBuildInterface

class in UnityEditor.Build.Content

切换到手册

描述

用于为 Unity 构建内容的低级接口。

注意:此类及其成员用于为可编程构建管线 (Scriptable Build Pipeline) 包提供低级支持。仅限内部使用;使用可编程构建管线包可以实现全功能的构建管线。可以通过 Unity Package Manager 安装此包。

静态函数

ArchiveAndCompress将资源文件合并到单个存档中,并根据传入的选项对其进行压缩。
CalculateBuildUsageTags计算一组对象的构建使用情况。
CalculatePlayerDependenciesForGameManagersCalculates dependency information for various internal Unity game manager classes.
CalculatePlayerDependenciesForScene计算场景依赖关系信息。
CalculatePlayerSerializationHashForTypeReturns a unique hash for a given type's serialized layout.
GenerateAssetBundleBuilds返回 AssetBundleBuild 结构的数组(这些结构详细说明了 AssetDatabase 中设置的当前资源包布局)。
GetGlobalUsageFromGraphicsSettings返回由 Graphics Settings 的 Shader Stripping 部分计算的全局使用情况信息。
GetPlayerAssetRepresentationsReturns a list of visible objects directly contained inside of an asset.
GetPlayerDependenciesForObject返回由一个对象引用的对象列表。
GetPlayerDependenciesForObjects返回由一组对象引用的对象列表。
GetPlayerObjectIdentifiersInAsset返回直接包含在资源内的对象列表。
GetPlayerObjectIdentifiersInSerializedFileReturns a list of objects directly contained inside of a loose serialized file.
GetTypeForObjectReturns the System.Type of the ObjectIdentifier specified by objectID.
GetTypeForObjectsReturns the System.Type of the ObjectIdentifiers and the referenced SerializeReference class types specified by objectIDs.
GetTypesForObjectReturns the System.Type of the ObjectIdentifier and the referenced SerializeReference class types specified by objectID.
ObjectIsSupportedInBuildReturns True if the passed in target object is a valid runtime object.
StartProfileCaptureStarts a profile capture to record content build profile events.
StopProfileCaptureReturns an array of ContentBuildProfileEvent structs that contain information for each occuring event. Also stops the profile capture.
WriteGameManagersSerializedFileWrites the current settings of internal Unity game manager classes to the 'globalgamemanagers' file on disk.
WriteSceneSerializedFile将场景对象写入磁盘上的序列化文件。
WriteSerializedFile将对象写入磁盘上的序列化文件。