Version: 2023.2

BuildUsageTagSet

class in UnityEditor.Build.Content

切换到手册

描述

这是一个容器,用于保存如何在构建中使用对象的相关信息。

此类有助于确保正确的共享变体、网格通道等正确包含在构建中。

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

构造函数

BuildUsageTagSet空 BuildUsageTagSet 的默认构造函数。

公共函数

Dispose处置 BuildUsageTagSet,销毁所有内部状态。
Equals如果对象相等,则返回 true。
FilterToSubsetFilters this BuildUsageTagSet instance to remove references to any objects that are not in the array of ObjectIdentifiers specified by objectIds.
GetHash128获取 BuildReferenceMap 的哈希。
GetHashCode获取 BuildUsageTagSet 的哈希代码。
GetObjectData用于在 Unity 内部序列化系统之外支持序列化的 ISerializable 方法。
GetObjectIdentifiers返回一个 ObjectIdentifiers 数组(此 BuildUsageTagSet 包含有关该数组的使用信息)。
UnionWith将另一个 BuildUsageTagSet 中的对象使用信息添加到此 BuildUsageTagSet。