Browse Source

图片设置

guodong 1 year ago
parent
commit
af47cbdf46

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

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