Files
YooAsset/Assets/YooAsset/Editor/AssetBundleCollector/IPackRule.cs

34 lines
676 B
C#
Raw Normal View History

2022-04-02 15:13:25 +08:00

namespace YooAsset.Editor
{
public struct PackRuleData
{
public string AssetPath;
public string CollectPath;
public string GroupName;
2022-04-02 15:13:25 +08:00
public PackRuleData(string assetPath)
{
AssetPath = assetPath;
CollectPath = string.Empty;
GroupName = string.Empty;
2022-04-02 15:13:25 +08:00
}
public PackRuleData(string assetPath, string collectPath, string groupName)
2022-04-02 15:13:25 +08:00
{
AssetPath = assetPath;
CollectPath = collectPath;
GroupName = groupName;
2022-04-02 15:13:25 +08:00
}
}
/// <summary>
/// 资源打包规则接口
/// </summary>
public interface IPackRule
{
/// <summary>
/// 获取资源打包所属的资源包名称
/// </summary>
string GetBundleName(PackRuleData data);
}
}