From 3c9c61c34651ef5e60762b85bc796cda2271492b Mon Sep 17 00:00:00 2001 From: hevinci Date: Mon, 25 Sep 2023 18:37:58 +0800 Subject: [PATCH] update resource package --- .../Internal/DeserializeManifestOperation.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DeserializeManifestOperation.cs b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DeserializeManifestOperation.cs index 740996b..f3e2a90 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DeserializeManifestOperation.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/Operation/Internal/DeserializeManifestOperation.cs @@ -154,10 +154,13 @@ namespace YooAsset if (Manifest.EnableAddressable) { string location = packageAsset.Address; - if (Manifest.AssetPathMapping1.ContainsKey(location)) - throw new System.Exception($"Location have existed : {location}"); - else - Manifest.AssetPathMapping1.Add(location, packageAsset.AssetPath); + 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