mirror of
https://github.com/tuyoogame/YooAsset.git
synced 2026-05-29 12:41:00 +00:00
Update DefaultFilterRule.cs
This commit is contained in:
@@ -47,7 +47,7 @@ namespace YooAsset.Editor
|
|||||||
var mainAssetType = AssetDatabase.GetMainAssetTypeAtPath(data.AssetPath);
|
var mainAssetType = AssetDatabase.GetMainAssetTypeAtPath(data.AssetPath);
|
||||||
if(mainAssetType == typeof(Texture2D))
|
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)
|
if (texImporter != null && texImporter.textureType == TextureImporterType.Sprite)
|
||||||
return true;
|
return true;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user