From 2400cbc4274cdedd6212b076785d80d19a22e05f Mon Sep 17 00:00:00 2001 From: gaoxin Date: Mon, 29 Mar 2021 17:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=B5=84=E6=BA=90=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E3=80=91=E8=B5=84=E6=BA=90=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E8=AE=BE=E7=BD=AE=E5=8E=8B=E7=BC=A9?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=EF=BC=8C=E4=BF=AE=E5=A4=8D=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=8C=96=E8=B5=84=E6=BA=90=E5=AF=BC=E5=85=A5=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=B5=84=E6=BA=90=E7=BC=93=E5=AD=98=E4=B8=8D?= =?UTF-8?q?=E6=B8=85=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Editor/CustomImportSettings.cs | 4 +++- Assets/Scripts/Editor/LanguageTool/ArtFontWindow.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Editor/CustomImportSettings.cs b/Assets/Scripts/Editor/CustomImportSettings.cs index 7d7230586c..d380c0c0a1 100644 --- a/Assets/Scripts/Editor/CustomImportSettings.cs +++ b/Assets/Scripts/Editor/CustomImportSettings.cs @@ -22,6 +22,8 @@ namespace GameEditor /// private static Dictionary> handlers = new Dictionary> { + {"/ArtFont_en/", SetUITexture}, + {"/ArtFont_vi/", SetUITexture}, //UI {"/Atlas/", SetUITexture}, {"/BG/", SetBGTexture}, @@ -64,7 +66,7 @@ namespace GameEditor { importer.spritePackingTag = GetAtlasName(importer.assetPath); importer.SetTextureSettingsExt(true, TextureImporterType.Sprite, 1, AppConst.PIXELTOWORLD, false, TextureWrapMode.Clamp, FilterMode.Trilinear, TextureImporterNPOTScale.None); - //importer.SetPlatformSettingsExt("Android", TextureImporterFormat.ETC2_RGBA8Crunched, MAX_TEXTURE_SIZE, 50, false); + importer.SetPlatformSettingsExt("Android", TextureImporterFormat.ETC2_RGBA8Crunched, MAX_TEXTURE_SIZE, 50, false); //importer.SetPlatformSettingsExt("iPhone", TextureImporterFormat.ETC2_RGBA8Crunched, MAX_TEXTURE_SIZE, 50, false); //importer.SetPlatformSettingsExt("Standalone", TextureImporterFormat.RGBA32, MAX_TEXTURE_SIZE, 50, false); } diff --git a/Assets/Scripts/Editor/LanguageTool/ArtFontWindow.cs b/Assets/Scripts/Editor/LanguageTool/ArtFontWindow.cs index a16b1ac259..7b63d61785 100644 --- a/Assets/Scripts/Editor/LanguageTool/ArtFontWindow.cs +++ b/Assets/Scripts/Editor/LanguageTool/ArtFontWindow.cs @@ -157,6 +157,8 @@ namespace GameEditor.FrameTool if (GUILayout.Button("导入", GUILayout.Height(50))) { + m_ImportArt.Clear(); + m_UnImportArt.Clear(); m_ArtFontLists[LanguageType.ZH] = GetAllArtFont(LanguageType.ZH); if (m_ChooseAll) {