From cc77143992e10f6555204fee727ed11848521a64 Mon Sep 17 00:00:00 2001 From: swrring Date: Thu, 12 Nov 2026 23:46:36 +0900 Subject: [PATCH] =?UTF-8?q?UI=20=EC=95=84=ED=8B=80=EB=9D=BC=EC=8A=A4=20?= =?UTF-8?q?=EB=B0=89=EB=A7=B5=20=EC=BC=AC=20+=20=EB=B3=B4=EB=AC=BC=20?= =?UTF-8?q?=EC=95=84=EC=9D=B4=EC=BD=98=20=ED=85=8C=EB=A7=88=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D(PD=202026-11-11=20=E3=80=8C=EB=B0=89=EB=A7=B5=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EC=9D=84=20=EC=BC=9C=EA=B3=A0=E3=80=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - UIAtlasBuilder: generateMipMaps true · Trilinear · 설정 판(TexSettingsVer "mip1")을 구성 서명에 넣어 기존 아틀라스 다시 굽기 · 아틀라스 4장(UI_Common · UI_Content · UI_SkillIcon · WorldMap_UI) 설정 갱신 · 메모리 = 장마다 약 +1/3 · 이유: 밉맵 없이 256 px 아이콘을 1/2 아래로 줄여 그리면 외곽 계단·지글거림(작은 화면 · 에디터 축소 화면) — 가로 700 캡처로 해소 확인 - UITheme.asset: 원격 스킬 아이콘(1532af5)과 합친 뒤 테마 임포트로 다시 생성 = 보물 아이콘 tre_* 30 추가(스킬 아이콘 159 유지) Co-Authored-By: Claude Opus 5.5 --- Assets/Resources/UI/UITheme.asset | 120 ++++++++++++++++++ Assets/Scripts/Editor/UIAtlasBuilder.cs | 15 ++- .../UI/Atlases/UI_Common.spriteatlasv2.meta | 6 +- .../UI/Atlases/UI_Content.spriteatlasv2.meta | 6 +- .../Atlases/UI_SkillIcon.spriteatlasv2.meta | 6 +- .../UI/Atlases/WorldMap_UI.spriteatlasv2.meta | 6 +- 6 files changed, 142 insertions(+), 17 deletions(-) diff --git a/Assets/Resources/UI/UITheme.asset b/Assets/Resources/UI/UITheme.asset index 83143dbf..1919df5b 100644 --- a/Assets/Resources/UI/UITheme.asset +++ b/Assets/Resources/UI/UITheme.asset @@ -2492,6 +2492,126 @@ MonoBehaviour: pack: {fileID: 0} samguk: {fileID: 21300000, guid: 1c2c8538c78d41244805a251c92171c0, type: 3} tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_ancient_blade + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 5ef9d8ba04ba7284b9ab0d656d2de346, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_art_of_war + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: c28de5eaf890e6b47817c3525a32ab4d, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_black_iron_armor + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: b86075e8d6abbf24690ca988fd898472, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_book_of_changes + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: c58b2a2f9bea3114eaf1dd27a425d232, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_dilu + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 1a82b8e86b3e8f544b33b9dcb9976da1, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_dragon_gall_spear + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: a75f0e911187b954695d177b1aebb610, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_feather_fan + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 8f5d4cb70e4e2184680a1c047eed17a3, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_gold_bell + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 1f340282f65e5334ebb730899d6ace38, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_great_chopper + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 5bcf99f75db594541b1b1f01bde7cd6b, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_green_dragon_blade + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 76e301d6d4785194e90a2586374fc957, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_heaven_reliant_sword + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: f510c0848c0ee7e49b511ac448da5395, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_hebei_war_banner + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: e32273eab591a44458949bfc320e3345, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_iron_core_bow + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 20f08ae7f97e6c24293f5d937bc9e04b, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_jade_seal + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: d14269935c13ba04295122d0f477b689, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_king_wu_sword + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: bec2255b7de072345b678746b851b710, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_nine_section_staff + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 4ad4c9291480f9040bc95fc967bdc7b9, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_red_hare + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: b36e7fd10e27eb240b83f755784ef694, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_serpent_spear + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 8af942c32a45160428846348044c6ab3, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_seven_star_sword + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: ac5e239f3fcedae45bd46e1ba29fc968, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_seven_string_zither + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 4c5a9563f9ff39144a53a22919dc6396, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_sky_piercer_halberd + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: cb15d03d847ed5943a1bde0994090cd5, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_taiping_book + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 561f14befc1d9c8459d11275c88c13d3, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_three_strategies + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 477152dde3a5a5448a131c68e98d114f, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_tiger_head_spear + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 854bea0c974dc8f42adde9550a0be252, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_twin_iron_halberd + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 1f70dd8de4019c54ca8d5404b6096b63, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_twin_swords + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: c47b9701d961a964f835056214c10ff7, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_xiliang_armor + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 22d30ab6ec1dcf544b2cb93f33bffe80, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_xiliang_bow + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 575af43283c46cb41a301cd4b610f3eb, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_yellow_talisman + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 3b9b23557fe8cad4d97588612f0ad67b, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} + - id: tre_yellow_turban + pack: {fileID: 0} + samguk: {fileID: 21300000, guid: 5191ec19812d3414da040bdd74b36d21, type: 3} + tint: {r: 1, g: 1, b: 1, a: 1} titleFont: {fileID: 12800000, guid: c39a7a9926c7dcf4891011de7f09b4b3, type: 3} bodyFont: {fileID: 12800000, guid: 9465d06e87caef04e8ec29e8ab4670ef, type: 3} bodyBoldFont: {fileID: 12800000, guid: 1f8be275dd6c50e4ab53f7529ed55727, type: 3} diff --git a/Assets/Scripts/Editor/UIAtlasBuilder.cs b/Assets/Scripts/Editor/UIAtlasBuilder.cs index 40383484..c4a836b2 100644 --- a/Assets/Scripts/Editor/UIAtlasBuilder.cs +++ b/Assets/Scripts/Editor/UIAtlasBuilder.cs @@ -151,11 +151,14 @@ namespace TKS.EditorTools return true; } - /// 아틀라스 1장을 표 구성대로 · 구성(목록·크기·간격) 서명이 같으면 건드리지 않는다. + /// 텍스처 설정 판 — 아래 textureSettings 를 바꾸면 이 값을 올려 기존 아틀라스를 다시 굽게 한다(서명에 들어감). + const string TexSettingsVer = "mip1"; + + /// 아틀라스 1장을 표 구성대로 · 구성(설정 판·목록·크기·간격) 서명이 같으면 건드리지 않는다. static bool Write(Group g, int padding) { string path = OutDir + "/" + g.name + ".spriteatlasv2"; - string sig = Hash128.Compute(g.maxSize + ";" + padding + ";" + string.Join("|", g.paths.Select(AssetDatabase.AssetPathToGUID))).ToString(); + string sig = Hash128.Compute(TexSettingsVer + ";" + g.maxSize + ";" + padding + ";" + string.Join("|", g.paths.Select(AssetDatabase.AssetPathToGUID))).ToString(); var imp = AssetImporter.GetAtPath(path) as SpriteAtlasImporter; if (imp != null && imp.userData == sig) return false; @@ -171,7 +174,7 @@ namespace TKS.EditorTools AssetDatabase.ImportAsset(path, ImportAssetOptions.ForceSynchronousImport); imp = (SpriteAtlasImporter)AssetImporter.GetAtPath(path); imp.includeInBuild = true; - // UI = 사각 묶음(9-slice · Filled 가 그대로) · 회전 없음 · 밉맵 없음 + // UI = 사각 묶음(9-slice · Filled 가 그대로) · 회전 없음 imp.packingSettings = new SpriteAtlasPackingSettings { blockOffset = 1, @@ -180,12 +183,14 @@ namespace TKS.EditorTools enableAlphaDilation = true, padding = padding }; + // 밉맵 켬(PD 2026-11-11 「밉맵 생성을 켜고」) — 작은 화면에서 256 px 아이콘을 1/2 아래로 줄여 그릴 때 외곽 계단·지글거림 제거 · + // Trilinear = 축소 단계 사이를 섞어 크기가 바뀌는 연출에서도 튀지 않음 · 메모리 = 아틀라스마다 약 +1/3 imp.textureSettings = new SpriteAtlasTextureSettings { readable = false, - generateMipMaps = false, + generateMipMaps = true, sRGB = true, - filterMode = FilterMode.Bilinear, + filterMode = FilterMode.Trilinear, anisoLevel = 0 }; var ps = imp.GetPlatformSettings("DefaultTexturePlatform"); diff --git a/Assets/UI/Atlases/UI_Common.spriteatlasv2.meta b/Assets/UI/Atlases/UI_Common.spriteatlasv2.meta index e31f8a56..53c51a17 100644 --- a/Assets/UI/Atlases/UI_Common.spriteatlasv2.meta +++ b/Assets/UI/Atlases/UI_Common.spriteatlasv2.meta @@ -8,8 +8,8 @@ SpriteAtlasImporter: compressionQuality: 0 maxTextureSize: 0 textureCompression: 0 - filterMode: 1 - generateMipMaps: 0 + filterMode: 2 + generateMipMaps: 1 readable: 0 crunchedCompression: 0 sRGB: 1 @@ -38,6 +38,6 @@ SpriteAtlasImporter: secondaryTextureSettings: {} variantMultiplier: 1 bindAsDefault: 1 - userData: b41e6e876a83b64ce49157a3fb17032a + userData: 207566d797cda63e70e66233f1d07728 assetBundleName: assetBundleVariant: diff --git a/Assets/UI/Atlases/UI_Content.spriteatlasv2.meta b/Assets/UI/Atlases/UI_Content.spriteatlasv2.meta index dd851275..38ce88c2 100644 --- a/Assets/UI/Atlases/UI_Content.spriteatlasv2.meta +++ b/Assets/UI/Atlases/UI_Content.spriteatlasv2.meta @@ -8,8 +8,8 @@ SpriteAtlasImporter: compressionQuality: 0 maxTextureSize: 0 textureCompression: 0 - filterMode: 1 - generateMipMaps: 0 + filterMode: 2 + generateMipMaps: 1 readable: 0 crunchedCompression: 0 sRGB: 1 @@ -38,6 +38,6 @@ SpriteAtlasImporter: secondaryTextureSettings: {} variantMultiplier: 1 bindAsDefault: 1 - userData: 4dbf55295db50cdfa18e4172abb1240b + userData: 99a22992cec4451c0f1ab22b984288c4 assetBundleName: assetBundleVariant: diff --git a/Assets/UI/Atlases/UI_SkillIcon.spriteatlasv2.meta b/Assets/UI/Atlases/UI_SkillIcon.spriteatlasv2.meta index c14d513a..82c756f0 100644 --- a/Assets/UI/Atlases/UI_SkillIcon.spriteatlasv2.meta +++ b/Assets/UI/Atlases/UI_SkillIcon.spriteatlasv2.meta @@ -8,8 +8,8 @@ SpriteAtlasImporter: compressionQuality: 0 maxTextureSize: 0 textureCompression: 0 - filterMode: 1 - generateMipMaps: 0 + filterMode: 2 + generateMipMaps: 1 readable: 0 crunchedCompression: 0 sRGB: 1 @@ -38,6 +38,6 @@ SpriteAtlasImporter: secondaryTextureSettings: {} variantMultiplier: 1 bindAsDefault: 1 - userData: 382432956922d3fe8e14b6c5f7aeaadc + userData: 8ffc60dba29113c12c9aa5ddb3757cb3 assetBundleName: assetBundleVariant: diff --git a/Assets/UI/Atlases/WorldMap_UI.spriteatlasv2.meta b/Assets/UI/Atlases/WorldMap_UI.spriteatlasv2.meta index b5f69b22..341ee586 100644 --- a/Assets/UI/Atlases/WorldMap_UI.spriteatlasv2.meta +++ b/Assets/UI/Atlases/WorldMap_UI.spriteatlasv2.meta @@ -8,8 +8,8 @@ SpriteAtlasImporter: compressionQuality: 0 maxTextureSize: 0 textureCompression: 0 - filterMode: 1 - generateMipMaps: 0 + filterMode: 2 + generateMipMaps: 1 readable: 0 crunchedCompression: 0 sRGB: 1 @@ -38,6 +38,6 @@ SpriteAtlasImporter: secondaryTextureSettings: {} variantMultiplier: 1 bindAsDefault: 1 - userData: 4ff456e91362a4f3c06e9aa4c0f2a0ae + userData: 48a46df52274c965baec7598dc694240 assetBundleName: assetBundleVariant: