mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-14 19:40:47 +00:00
fix #359
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user