update asset bundle collector

增加了AddressByFilePath规则类
pull/86/head
hevinci 2023-03-24 16:13:39 +08:00
parent 923b0751e5
commit 290e139346
2 changed files with 10 additions and 0 deletions

View File

@ -108,6 +108,7 @@ namespace YooAsset.Editor
List<Type> types = new List<Type>(100) List<Type> types = new List<Type>(100)
{ {
typeof(AddressByFileName), typeof(AddressByFileName),
typeof(AddressByFilePath),
typeof(AddressByFolderAndFileName), typeof(AddressByFolderAndFileName),
typeof(AddressByGroupAndFileName) typeof(AddressByGroupAndFileName)
}; };

View File

@ -11,6 +11,15 @@ namespace YooAsset.Editor
} }
} }
[DisplayName("定位地址: 文件路径")]
public class AddressByFilePath : IAddressRule
{
string IAddressRule.GetAssetAddress(AddressRuleData data)
{
return data.AssetPath;
}
}
[DisplayName("定位地址: 分组名+文件名")] [DisplayName("定位地址: 分组名+文件名")]
public class AddressByGroupAndFileName : IAddressRule public class AddressByGroupAndFileName : IAddressRule
{ {