mirror of https://github.com/tuyoogame/YooAsset
fix #359
parent
3f027e5456
commit
7652de0129
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue