diff --git a/Assets/YooAsset/Runtime/ResourceManager/Handle/SubAssetsHandle.cs b/Assets/YooAsset/Runtime/ResourceManager/Handle/SubAssetsHandle.cs index 22b38d5..175a9b5 100644 --- a/Assets/YooAsset/Runtime/ResourceManager/Handle/SubAssetsHandle.cs +++ b/Assets/YooAsset/Runtime/ResourceManager/Handle/SubAssetsHandle.cs @@ -89,7 +89,7 @@ namespace YooAsset foreach (var assetObject in Provider.AllAssetObjects) { - if (assetObject.name == assetName) + if (assetObject.name == assetName && assetObject is TObject) return assetObject as TObject; }