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) {