mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-29 12:41:00 +00:00
update asset bundle collector
This commit is contained in:
@@ -27,8 +27,8 @@ namespace YooAsset.Editor
|
|||||||
string IAddressRule.GetAssetAddress(AddressRuleData data)
|
string IAddressRule.GetAssetAddress(AddressRuleData data)
|
||||||
{
|
{
|
||||||
string fileName = Path.GetFileNameWithoutExtension(data.AssetPath);
|
string fileName = Path.GetFileNameWithoutExtension(data.AssetPath);
|
||||||
string collectorName = Path.GetFileNameWithoutExtension(data.CollectPath);
|
FileInfo fileInfo = new FileInfo(data.AssetPath);
|
||||||
return $"{collectorName}_{fileName}";
|
return $"{fileInfo.Directory.Name}_{fileName}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user