【资源导入工具】资源导入时自动设置压缩格式,修复本地化资源导入工具导入资源缓存不清除的问题

dev_chengFeng
gaoxin 2021-03-29 17:58:48 +08:00
parent 364bf32e80
commit 2400cbc427
2 changed files with 5 additions and 1 deletions

View File

@ -22,6 +22,8 @@ namespace GameEditor
/// </summary>
private static Dictionary<string, Action<TextureImporter, string>> handlers = new Dictionary<string, Action<TextureImporter, string>>
{
{"/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);
}

View File

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