update asset bundle collector

pull/82/head
hevinci 2023-03-08 18:34:48 +08:00
parent 8ff666d5e2
commit 5254fb65ef
1 changed files with 2 additions and 2 deletions

View File

@ -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}";
} }
} }
} }