【资源导入工具】资源导入时自动设置压缩格式,修复本地化资源导入工具导入资源缓存不清除的问题
parent
364bf32e80
commit
2400cbc427
|
|
@ -22,6 +22,8 @@ namespace GameEditor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private static Dictionary<string, Action<TextureImporter, string>> handlers = new Dictionary<string, Action<TextureImporter, string>>
|
private static Dictionary<string, Action<TextureImporter, string>> handlers = new Dictionary<string, Action<TextureImporter, string>>
|
||||||
{
|
{
|
||||||
|
{"/ArtFont_en/", SetUITexture},
|
||||||
|
{"/ArtFont_vi/", SetUITexture},
|
||||||
//UI
|
//UI
|
||||||
{"/Atlas/", SetUITexture},
|
{"/Atlas/", SetUITexture},
|
||||||
{"/BG/", SetBGTexture},
|
{"/BG/", SetBGTexture},
|
||||||
|
|
@ -64,7 +66,7 @@ namespace GameEditor
|
||||||
{
|
{
|
||||||
importer.spritePackingTag = GetAtlasName(importer.assetPath);
|
importer.spritePackingTag = GetAtlasName(importer.assetPath);
|
||||||
importer.SetTextureSettingsExt(true, TextureImporterType.Sprite, 1, AppConst.PIXELTOWORLD, false, TextureWrapMode.Clamp, FilterMode.Trilinear, TextureImporterNPOTScale.None);
|
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("iPhone", TextureImporterFormat.ETC2_RGBA8Crunched, MAX_TEXTURE_SIZE, 50, false);
|
||||||
//importer.SetPlatformSettingsExt("Standalone", TextureImporterFormat.RGBA32, MAX_TEXTURE_SIZE, 50, false);
|
//importer.SetPlatformSettingsExt("Standalone", TextureImporterFormat.RGBA32, MAX_TEXTURE_SIZE, 50, false);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -157,6 +157,8 @@ namespace GameEditor.FrameTool
|
||||||
|
|
||||||
if (GUILayout.Button("导入", GUILayout.Height(50)))
|
if (GUILayout.Button("导入", GUILayout.Height(50)))
|
||||||
{
|
{
|
||||||
|
m_ImportArt.Clear();
|
||||||
|
m_UnImportArt.Clear();
|
||||||
m_ArtFontLists[LanguageType.ZH] = GetAllArtFont(LanguageType.ZH);
|
m_ArtFontLists[LanguageType.ZH] = GetAllArtFont(LanguageType.ZH);
|
||||||
if (m_ChooseAll)
|
if (m_ChooseAll)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue