diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultFilterRule.cs b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultFilterRule.cs index 0549dcc..24e80a7 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/DefaultFilterRule.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/DefaultFilterRule.cs @@ -47,7 +47,7 @@ namespace YooAsset.Editor var mainAssetType = AssetDatabase.GetMainAssetTypeAtPath(data.AssetPath); if(mainAssetType == typeof(Texture2D)) { - var texImporter = TextureImporter.GetAtPath(data.AssetPath) as TextureImporter; + var texImporter = AssetImporter.GetAtPath(data.AssetPath) as TextureImporter; if (texImporter != null && texImporter.textureType == TextureImporterType.Sprite) return true; else