From 8457705807f4fc280153a0ca5fc8637d1dfaee8a Mon Sep 17 00:00:00 2001 From: hevinci Date: Sun, 8 Oct 2023 15:31:39 +0800 Subject: [PATCH] fix #177 --- .../YooAsset/Runtime/ResourceManager/ResourceManager.cs | 8 ++++---- Assets/YooAsset/Runtime/ResourcePackage/AssetInfo.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs b/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs index b3ee19f..3d1f7e3 100644 --- a/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs +++ b/Assets/YooAsset/Runtime/ResourceManager/ResourceManager.cs @@ -202,7 +202,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadAssetAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -230,7 +230,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadSubAssetsAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -258,7 +258,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadAllAssetsAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -286,7 +286,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadRawFileAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { diff --git a/Assets/YooAsset/Runtime/ResourcePackage/AssetInfo.cs b/Assets/YooAsset/Runtime/ResourcePackage/AssetInfo.cs index d5924b4..10775f7 100644 --- a/Assets/YooAsset/Runtime/ResourcePackage/AssetInfo.cs +++ b/Assets/YooAsset/Runtime/ResourcePackage/AssetInfo.cs @@ -33,9 +33,9 @@ namespace YooAsset return _providerGUID; if (AssetType == null) - _providerGUID = $"{AssetPath}[null]"; + _providerGUID = $"[{AssetPath}][null]"; else - _providerGUID = $"{AssetPath}[{AssetType.Name}]"; + _providerGUID = $"[{AssetPath}][{AssetType.Name}]"; return _providerGUID; } }