From 848d92b2631f8578e2e71db807a2135e3311cb79 Mon Sep 17 00:00:00 2001 From: fiore Date: Fri, 14 Mar 2025 15:24:22 +0900 Subject: [PATCH] =?UTF-8?q?DO-36=20Fix=20UI=20=ED=94=84=EB=A6=AC=ED=8C=B9?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 다양한 해상도 대응 - Canvas scaler 1920 * 1080 타게팅 - 세부 위치 조정 --- Assets/Prefabs/[Canvas] Game UI.prefab | 158 ++++++++++++++++++------- 1 file changed, 115 insertions(+), 43 deletions(-) diff --git a/Assets/Prefabs/[Canvas] Game UI.prefab b/Assets/Prefabs/[Canvas] Game UI.prefab index 398d379..ddb9074 100644 --- a/Assets/Prefabs/[Canvas] Game UI.prefab +++ b/Assets/Prefabs/[Canvas] Game UI.prefab @@ -37,7 +37,7 @@ RectTransform: m_AnchorMin: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1} m_AnchoredPosition: {x: 50, y: -100} - m_SizeDelta: {x: 228, y: 125.900024} + m_SizeDelta: {x: 228, y: 188.85} m_Pivot: {x: 0, y: 1} --- !u!222 &4747539784995484548 CanvasRenderer: @@ -196,10 +196,10 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3} m_Name: m_EditorClassIdentifier: - m_UiScaleMode: 0 + m_UiScaleMode: 1 m_ReferencePixelsPerUnit: 100 m_ScaleFactor: 1 - m_ReferenceResolution: {x: 800, y: 600} + m_ReferenceResolution: {x: 1920, y: 1080} m_ScreenMatchMode: 0 m_MatchWidthOrHeight: 0 m_PhysicalUnit: 3 @@ -224,6 +224,44 @@ MonoBehaviour: m_BlockingMask: serializedVersion: 2 m_Bits: 4294967295 +--- !u!1 &638907547342607085 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6209444297678801107} + m_Layer: 5 + m_Name: Player Div + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6209444297678801107 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 638907547342607085} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 8758049298581854606} + - {fileID: 2785359725927864505} + - {fileID: 1286412008661516750} + m_Father: {fileID: 8942070830740152784} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -600, y: 335} + m_Pivot: {x: 0.5, y: 0} --- !u!1 &2180157736785062510 GameObject: m_ObjectHideFlags: 0 @@ -284,7 +322,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 1, g: 0.3679244, b: 0.49593952, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 0} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -292,7 +330,7 @@ MonoBehaviour: m_PersistentCalls: m_Calls: [] m_Sprite: {fileID: 0} - m_Type: 1 + m_Type: 0 m_PreserveAspect: 0 m_FillCenter: 1 m_FillMethod: 4 @@ -406,17 +444,14 @@ RectTransform: m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - - {fileID: 8758049298581854606} - - {fileID: 2785359725927864505} - - {fileID: 1286412008661516750} - - {fileID: 1250546304786973426} - - {fileID: 2039662309230983458} + - {fileID: 451599240785790819} + - {fileID: 6209444297678801107} m_Father: {fileID: 6113787613246818512} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 1080, y: 500} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 0} + m_AnchoredPosition: {x: 0, y: 100} + m_SizeDelta: {x: 0, y: 500} m_Pivot: {x: 0.5, y: 0} --- !u!222 &870318249725167959 CanvasRenderer: @@ -439,7 +474,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Material: {fileID: 0} - m_Color: {r: 0.78798443, g: 0.26167864, b: 0.8238993, a: 1} + m_Color: {r: 1, g: 1, b: 1, a: 0} m_RaycastTarget: 1 m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} m_Maskable: 1 @@ -481,19 +516,19 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 2964396940857713075} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 3482171304034939411} - m_Father: {fileID: 8942070830740152784} + m_Father: {fileID: 451599240785790819} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 0, y: 0} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: -0.000061035156, y: 0} m_SizeDelta: {x: 540, y: 120} - m_Pivot: {x: 0, y: 1} + m_Pivot: {x: 0, y: 0.5} --- !u!222 &2606606041086763757 CanvasRenderer: m_ObjectHideFlags: 0 @@ -832,13 +867,13 @@ RectTransform: m_ConstrainProportionsScale: 0 m_Children: - {fileID: 2627969753235636098} - m_Father: {fileID: 8942070830740152784} + m_Father: {fileID: 6209444297678801107} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0.5, y: 0} - m_AnchorMax: {x: 0.5, y: 0} - m_AnchoredPosition: {x: 0, y: 100} + m_AnchorMin: {x: 0.5, y: 0.5} + m_AnchorMax: {x: 0.5, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 250, y: 250} - m_Pivot: {x: 0.5, y: 0} + m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &7235566515169572492 CanvasRenderer: m_ObjectHideFlags: 0 @@ -1214,20 +1249,20 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 4670535236205086833} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 7503863592388163661} - {fileID: 6390176559788333322} - m_Father: {fileID: 8942070830740152784} + m_Father: {fileID: 6209444297678801107} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 50, y: 40} + m_AnchorMin: {x: 0, y: 0.5} + m_AnchorMax: {x: 0, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 250, y: 300} - m_Pivot: {x: 0, y: 0} + m_Pivot: {x: 0, y: 0.5} --- !u!1 &5258332010899716781 GameObject: m_ObjectHideFlags: 0 @@ -1251,20 +1286,20 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 5258332010899716781} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 469323470332872332} - {fileID: 380278372965382015} - m_Father: {fileID: 8942070830740152784} + m_Father: {fileID: 6209444297678801107} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 0} - m_AnchorMax: {x: 1, y: 0} - m_AnchoredPosition: {x: -50, y: 40} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 250, y: 300} - m_Pivot: {x: 1, y: 0} + m_Pivot: {x: 1, y: 0.5} --- !u!1 &5273637481048279427 GameObject: m_ObjectHideFlags: 0 @@ -1633,19 +1668,19 @@ RectTransform: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 8214827650714712775} - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: - {fileID: 4790269285780218839} - m_Father: {fileID: 8942070830740152784} + m_Father: {fileID: 451599240785790819} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 1, y: 1} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMin: {x: 1, y: 0.5} + m_AnchorMax: {x: 1, y: 0.5} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 540, y: 120} - m_Pivot: {x: 1, y: 1} + m_Pivot: {x: 1, y: 0.5} --- !u!222 &4536082858370354248 CanvasRenderer: m_ObjectHideFlags: 0 @@ -1684,6 +1719,43 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &8622821704889965313 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 451599240785790819} + m_Layer: 5 + m_Name: Indicator Div + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &451599240785790819 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8622821704889965313} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 1250546304786973426} + - {fileID: 2039662309230983458} + m_Father: {fileID: 8942070830740152784} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 1} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: -300, y: 120} + m_Pivot: {x: 0.5, y: 1} --- !u!1001 &4056566997434591085 PrefabInstance: m_ObjectHideFlags: 0