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

Class AssetBundleCollectorSetting

Assembly: YooAsset.Editor.dll
Declaration
[CreateAssetMenu(fileName = "AssetBundleCollectorSetting", menuName = "YooAsset/Create AssetBundle Collector Settings")]
public class AssetBundleCollectorSetting : ScriptableObject

Fields

ShowPackageView

显示包裹列表视图

Declaration
public bool ShowPackageView

ShowEditorAlias

是否显示编辑器别名

Declaration
public bool ShowEditorAlias

UniqueBundleName

资源包名唯一化

Declaration
public bool UniqueBundleName

Packages

包裹列表

Declaration
public List<AssetBundleCollectorPackage> Packages

Methods

ClearAll()

清空所有数据

Declaration
public void ClearAll()

CheckPackageConfigError(string)

检测包裹配置错误

Declaration
public void CheckPackageConfigError(string packageName)
Parameters
TypeName
System.StringpackageName

CheckAllPackageConfigError()

检测所有配置错误

Declaration
public void CheckAllPackageConfigError()

FixAllPackageConfigError()

修复所有配置错误

Declaration
public bool FixAllPackageConfigError()
Returns

System.Boolean

GetPackageAllTags(string)

获取所有的资源标签

Declaration
public List<string> GetPackageAllTags(string packageName)
Returns

System.Collections.Generic.List<System.String>

Parameters
TypeName
System.StringpackageName

GetPackageAssets(bool, bool, string)

Declaration
[Obsolete("This method will be removed in a future ! Use BeginCollect instead.", true)]
public CollectResult GetPackageAssets(bool simulateBuild, bool useAssetDependencyDB, string packageName)
Returns

YooAsset.Editor.CollectResult

Parameters
TypeName
System.BooleansimulateBuild
System.BooleanuseAssetDependencyDB
System.StringpackageName

BeginCollect(string, bool, bool)

收集指定包裹的资源文件

Declaration
public CollectResult BeginCollect(string packageName, bool simulateBuild, bool useAssetDependencyDB)
Returns

YooAsset.Editor.CollectResult

Parameters
TypeName
System.StringpackageName
System.BooleansimulateBuild
System.BooleanuseAssetDependencyDB

GetPackage(string)

获取包裹类

Declaration
public AssetBundleCollectorPackage GetPackage(string packageName)
Returns

YooAsset.Editor.AssetBundleCollectorPackage

Parameters
TypeName
System.StringpackageName