浏览代码

图片设置

guodong 1 年之前
父节点
当前提交
af47cbdf46
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      GameClient/Assets/Editor/ArtsRes/TextureSetting/TextureImporterSetting .cs

+ 4 - 1
GameClient/Assets/Editor/ArtsRes/TextureSetting/TextureImporterSetting .cs

@@ -9,7 +9,10 @@ namespace GFGEditor
             TextureImporter textureImporter = assetImporter as TextureImporter;
             TextureImporter textureImporter = assetImporter as TextureImporter;
             if (textureImporter != null)
             if (textureImporter != null)
             {
             {
-                TextureAutoSet.ChangeTextureSetting(textureImporter);
+                if(textureImporter.assetPath.StartsWith("Assets/Res/") || textureImporter.assetPath.StartsWith("Assets/ResIn/"))
+                {
+                    TextureAutoSet.ChangeTextureSetting(textureImporter);
+                }
             }
             }
         }
         }
     }
     }