跳到主要内容
版本:3.0.x

Class BundleCollectorSettingData

资源收集器配置数据管理类

Assembly: YooAsset.Editor.dll
View Source
Declaration
public class BundleCollectorSettingData

Properties

IsDirty

配置数据是否被修改

View Source
Declaration
public static bool IsDirty { get; }

Setting

配置文件实例

View Source
Declaration
public static BundleCollectorSetting Setting { get; }

Methods

SaveFile()

存储配置文件

View Source
Declaration
public static void SaveFile()

FixFile()

修复配置文件

View Source
Declaration
public static void FixFile()

ClearAll()

清空所有数据

View Source
Declaration
public static void ClearAll()

GetGroupActiveRuleNames()

获取所有激活规则的显示名称列表

View Source
Declaration
public static List<RuleDisplayName> GetGroupActiveRuleNames()
Returns

System.Collections.Generic.List<YooAsset.Editor.RuleDisplayName>: 激活规则的显示名称列表### GetAddressRuleNames() 获取所有寻址规则的显示名称列表

View Source
Declaration
public static List<RuleDisplayName> GetAddressRuleNames()
Returns

System.Collections.Generic.List<YooAsset.Editor.RuleDisplayName>: 寻址规则的显示名称列表### GetBundlePackRuleNames() 获取所有打包规则的显示名称列表

View Source
Declaration
public static List<RuleDisplayName> GetBundlePackRuleNames()
Returns

System.Collections.Generic.List<YooAsset.Editor.RuleDisplayName>: 打包规则的显示名称列表### GetAssetFilterRuleNames() 获取所有过滤规则的显示名称列表

View Source
Declaration
public static List<RuleDisplayName> GetAssetFilterRuleNames()
Returns

System.Collections.Generic.List<YooAsset.Editor.RuleDisplayName>: 过滤规则的显示名称列表### GetAssetIgnoreRuleNames() 获取所有忽略规则的显示名称列表

View Source
Declaration
public static List<RuleDisplayName> GetAssetIgnoreRuleNames()
Returns

System.Collections.Generic.List<YooAsset.Editor.RuleDisplayName>: 忽略规则的显示名称列表### HasGroupActiveRuleName(string) 检查是否存在指定的激活规则

View Source
Declaration
public static bool HasGroupActiveRuleName(string ruleName)
Returns

System.Boolean: 存在则返回 true,否则返回 false

Parameters
TypeNameDescription
System.StringruleName规则类名

HasAddressRuleName(string)

检查是否存在指定的寻址规则

View Source
Declaration
public static bool HasAddressRuleName(string ruleName)
Returns

System.Boolean: 存在则返回 true,否则返回 false

Parameters
TypeNameDescription
System.StringruleName规则类名

HasBundlePackRuleName(string)

检查是否存在指定的打包规则

View Source
Declaration
public static bool HasBundlePackRuleName(string ruleName)
Returns

System.Boolean: 存在则返回 true,否则返回 false

Parameters
TypeNameDescription
System.StringruleName规则类名

HasAssetFilterRuleName(string)

检查是否存在指定的过滤规则

View Source
Declaration
public static bool HasAssetFilterRuleName(string ruleName)
Returns

System.Boolean: 存在则返回 true,否则返回 false

Parameters
TypeNameDescription
System.StringruleName规则类名

HasAssetIgnoreRuleName(string)

检查是否存在指定的忽略规则

View Source
Declaration
public static bool HasAssetIgnoreRuleName(string ruleName)
Returns

System.Boolean: 存在则返回 true,否则返回 false

Parameters
TypeNameDescription
System.StringruleName规则类名

GetGroupActiveRuleInstance(string)

获取激活规则实例

View Source
Declaration
public static IGroupActiveRule GetGroupActiveRuleInstance(string ruleName)
Returns

YooAsset.Editor.IGroupActiveRule: 激活规则实例

Parameters
TypeNameDescription
System.StringruleName规则类名

GetAddressRuleInstance(string)

获取寻址规则实例

View Source
Declaration
public static IAddressRule GetAddressRuleInstance(string ruleName)
Returns

YooAsset.Editor.IAddressRule: 寻址规则实例

Parameters
TypeNameDescription
System.StringruleName规则类名

GetBundlePackRuleInstance(string)

获取打包规则实例

View Source
Declaration
public static IBundlePackRule GetBundlePackRuleInstance(string ruleName)
Returns

YooAsset.Editor.IBundlePackRule: 打包规则实例

Parameters
TypeNameDescription
System.StringruleName规则类名

GetAssetFilterRuleInstance(string)

获取过滤规则实例

View Source
Declaration
public static IAssetFilterRule GetAssetFilterRuleInstance(string ruleName)
Returns

YooAsset.Editor.IAssetFilterRule: 过滤规则实例

Parameters
TypeNameDescription
System.StringruleName规则类名

GetAssetIgnoreRuleInstance(string)

获取忽略规则实例

View Source
Declaration
public static IAssetIgnoreRule GetAssetIgnoreRuleInstance(string ruleName)
Returns

YooAsset.Editor.IAssetIgnoreRule: 忽略规则实例

Parameters
TypeNameDescription
System.StringruleName规则类名

ModifyShowPackageView(bool)

修改是否显示资源包裹视图

View Source
Declaration
public static void ModifyShowPackageView(bool showPackageView)
Parameters
TypeNameDescription
System.BooleanshowPackageView是否显示资源包裹视图

ModifyShowEditorAlias(bool)

修改是否显示编辑器别名

View Source
Declaration
public static void ModifyShowEditorAlias(bool showAlias)
Parameters
TypeNameDescription
System.BooleanshowAlias是否显示编辑器别名

ModifyUniqueBundleName(bool)

修改是否启用资源包唯一命名

View Source
Declaration
public static void ModifyUniqueBundleName(bool uniqueBundleName)
Parameters
TypeNameDescription
System.BooleanuniqueBundleName是否启用资源包唯一命名

CreatePackage(string)

创建资源包裹

View Source
Declaration
public static BundleCollectorPackage CreatePackage(string packageName)
Returns

YooAsset.Editor.BundleCollectorPackage: 新创建的资源包裹

Parameters
TypeNameDescription
System.StringpackageName资源包裹名称

RemovePackage(BundleCollectorPackage)

移除资源包裹

View Source
Declaration
public static void RemovePackage(BundleCollectorPackage package)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorPackagepackage要移除的资源包裹

ModifyPackage(BundleCollectorPackage)

标记资源包裹已修改

View Source
Declaration
public static void ModifyPackage(BundleCollectorPackage package)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorPackagepackage已修改的资源包裹

CreateGroup(BundleCollectorPackage, string)

创建资源分组

View Source
Declaration
public static BundleCollectorGroup CreateGroup(BundleCollectorPackage package, string groupName)
Returns

YooAsset.Editor.BundleCollectorGroup: 新创建的资源分组

Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorPackagepackage所属资源包裹
System.StringgroupName资源分组名称

RemoveGroup(BundleCollectorPackage, BundleCollectorGroup)

移除资源分组

View Source
Declaration
public static void RemoveGroup(BundleCollectorPackage package, BundleCollectorGroup group)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorPackagepackage所属资源包裹
YooAsset.Editor.BundleCollectorGroupgroup要移除的资源分组

ModifyGroup(BundleCollectorPackage, BundleCollectorGroup)

标记资源分组已修改

View Source
Declaration
public static void ModifyGroup(BundleCollectorPackage package, BundleCollectorGroup group)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorPackagepackage所属资源包裹
YooAsset.Editor.BundleCollectorGroupgroup已修改的资源分组

CreateCollector(BundleCollectorGroup, BundleCollector)

创建资源收集器条目

View Source
Declaration
public static void CreateCollector(BundleCollectorGroup group, BundleCollector collector)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorGroupgroup所属资源分组
YooAsset.Editor.BundleCollectorcollector资源收集器配置

RemoveCollector(BundleCollectorGroup, BundleCollector)

移除资源收集器条目

View Source
Declaration
public static void RemoveCollector(BundleCollectorGroup group, BundleCollector collector)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorGroupgroup所属资源分组
YooAsset.Editor.BundleCollectorcollector要移除的资源收集器

ModifyCollector(BundleCollectorGroup, BundleCollector)

标记资源收集器已修改

View Source
Declaration
public static void ModifyCollector(BundleCollectorGroup group, BundleCollector collector)
Parameters
TypeNameDescription
YooAsset.Editor.BundleCollectorGroupgroup所属资源分组
YooAsset.Editor.BundleCollectorcollector已修改的资源收集器

GetPackageAllTags(string)

获取所有的资源标签

View Source
Declaration
public static string GetPackageAllTags(string packageName)
Returns

System.String: 以分号分隔的资源标签字符串

Parameters
TypeNameDescription
System.StringpackageName资源包裹名称