update asset bundle collector

This commit is contained in:
hevinci
2023-03-08 18:34:48 +08:00
parent 8ff666d5e2
commit 5254fb65ef

View File

@@ -27,8 +27,8 @@ namespace YooAsset.Editor
string IAddressRule.GetAssetAddress(AddressRuleData data)
{
string fileName = Path.GetFileNameWithoutExtension(data.AssetPath);
string collectorName = Path.GetFileNameWithoutExtension(data.CollectPath);
return $"{collectorName}_{fileName}";
FileInfo fileInfo = new FileInfo(data.AssetPath);
return $"{fileInfo.Directory.Name}_{fileName}";
}
}
}