mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-27 19:20:09 +00:00
update asset bundle collector
增加了AddressByFilePath规则类
This commit is contained in:
@@ -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)
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user