pull/370/head
何冠峰 2024-09-02 10:30:21 +08:00
parent 3f027e5456
commit 7652de0129
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ namespace YooAsset
foreach (var assetObject in Provider.AllAssetObjects) foreach (var assetObject in Provider.AllAssetObjects)
{ {
if (assetObject.name == assetName) if (assetObject.name == assetName && assetObject is TObject)
return assetObject as TObject; return assetObject as TObject;
} }