update resource package

pull/189/head
hevinci 2023-09-25 18:37:58 +08:00
parent d560d8a2e8
commit 3c9c61c346
1 changed files with 7 additions and 4 deletions

View File

@ -154,11 +154,14 @@ namespace YooAsset
if (Manifest.EnableAddressable)
{
string location = packageAsset.Address;
if (string.IsNullOrEmpty(location) == false)
{
if (Manifest.AssetPathMapping1.ContainsKey(location))
throw new System.Exception($"Location have existed : {location}");
else
Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath);
}
}
// 填充AssetPathMapping2
if (Manifest.IncludeAssetGUID)