Version: 2023.2

ContentBuildInterface

class in UnityEditor.Build.Content

切换到手册

描述

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

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

静态函数

ArchiveAndCompressCreate a Unity archive file, containing the content of one or more resource files.
CalculateBuildUsageTags计算一组对象的构建使用情况。
CalculatePlayerDependenciesForGameManagersCalculates dependency information for various internal Unity game manager classes.
CalculatePlayerDependenciesForScene计算场景依赖关系信息。
CalculatePlayerSerializationHashForTypeReturns a unique hash for a given type's serialized layout.
GenerateAssetBundleBuildsReturns an array of AssetBundleBuild structs that detail the current AssetBundle layout, as set through the Inspector and stored in the AssetDatabase.
GetGlobalUsageFromActiveSceneGets information about the lighting and render settings in the active scene.
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将对象写入磁盘上的序列化文件。