From 2630a7e7936eba6681f0ad61e6aa42d365cccf56 Mon Sep 17 00:00:00 2001 From: hevinci Date: Sun, 8 Oct 2023 15:56:19 +0800 Subject: [PATCH] fix #177 --- Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs | 8 ++++---- Assets/YooAsset/Runtime/PackageSystem/AssetInfo.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs b/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs index c3825e9..aff8ba3 100644 --- a/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs +++ b/Assets/YooAsset/Runtime/AssetSystem/AssetSystem.cs @@ -199,7 +199,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadAssetAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -227,7 +227,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadSubAssetsAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -255,7 +255,7 @@ namespace YooAsset return completedProvider.CreateHandle(); } - string providerGUID = assetInfo.GUID; + string providerGUID = nameof(LoadAllAssetsAsync) + assetInfo.GUID; ProviderBase provider = TryGetProvider(providerGUID); if (provider == null) { @@ -283,7 +283,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/PackageSystem/AssetInfo.cs b/Assets/YooAsset/Runtime/PackageSystem/AssetInfo.cs index 9a5411d..2bd4d84 100644 --- a/Assets/YooAsset/Runtime/PackageSystem/AssetInfo.cs +++ b/Assets/YooAsset/Runtime/PackageSystem/AssetInfo.cs @@ -28,9 +28,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; } }