pull/235/head
hevinci 2023-10-08 15:56:19 +08:00
parent 45b016ae0f
commit 2630a7e793
2 changed files with 6 additions and 6 deletions

View File

@ -199,7 +199,7 @@ namespace YooAsset
return completedProvider.CreateHandle<AssetOperationHandle>(); return completedProvider.CreateHandle<AssetOperationHandle>();
} }
string providerGUID = assetInfo.GUID; string providerGUID = nameof(LoadAssetAsync) + assetInfo.GUID;
ProviderBase provider = TryGetProvider(providerGUID); ProviderBase provider = TryGetProvider(providerGUID);
if (provider == null) if (provider == null)
{ {
@ -227,7 +227,7 @@ namespace YooAsset
return completedProvider.CreateHandle<SubAssetsOperationHandle>(); return completedProvider.CreateHandle<SubAssetsOperationHandle>();
} }
string providerGUID = assetInfo.GUID; string providerGUID = nameof(LoadSubAssetsAsync) + assetInfo.GUID;
ProviderBase provider = TryGetProvider(providerGUID); ProviderBase provider = TryGetProvider(providerGUID);
if (provider == null) if (provider == null)
{ {
@ -255,7 +255,7 @@ namespace YooAsset
return completedProvider.CreateHandle<AllAssetsOperationHandle>(); return completedProvider.CreateHandle<AllAssetsOperationHandle>();
} }
string providerGUID = assetInfo.GUID; string providerGUID = nameof(LoadAllAssetsAsync) + assetInfo.GUID;
ProviderBase provider = TryGetProvider(providerGUID); ProviderBase provider = TryGetProvider(providerGUID);
if (provider == null) if (provider == null)
{ {
@ -283,7 +283,7 @@ namespace YooAsset
return completedProvider.CreateHandle<RawFileOperationHandle>(); return completedProvider.CreateHandle<RawFileOperationHandle>();
} }
string providerGUID = assetInfo.GUID; string providerGUID = nameof(LoadRawFileAsync) + assetInfo.GUID;
ProviderBase provider = TryGetProvider(providerGUID); ProviderBase provider = TryGetProvider(providerGUID);
if (provider == null) if (provider == null)
{ {

View File

@ -28,9 +28,9 @@ namespace YooAsset
return _providerGUID; return _providerGUID;
if (AssetType == null) if (AssetType == null)
_providerGUID = $"{AssetPath}[null]"; _providerGUID = $"[{AssetPath}][null]";
else else
_providerGUID = $"{AssetPath}[{AssetType.Name}]"; _providerGUID = $"[{AssetPath}][{AssetType.Name}]";
return _providerGUID; return _providerGUID;
} }
} }