fix: 모바일 기기의 SafeArea에 맞춰 화면 비율 고정 로직 적용

This commit is contained in:
aube.lee
2025-03-06 00:08:03 +09:00
parent 8f69ecc429
commit 7fa43b35b4
22 changed files with 844 additions and 196 deletions

View File

@@ -11,6 +11,7 @@ GameObject:
- component: {fileID: 4733240151297030649}
- component: {fileID: 4776882524516972063}
- component: {fileID: 7551671613535986307}
- component: {fileID: 6853946122075172991}
m_Layer: 5
m_Name: Background
m_TagString: Untagged
@@ -29,7 +30,10 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Children:
- {fileID: 7764230924738659234}
- {fileID: 7498466727035974352}
- {fileID: 3893907938536155103}
m_Father: {fileID: 761104765373339944}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@@ -75,6 +79,18 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &6853946122075172991
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 96741275943030464}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 196728227d77b9440af7a0e6102e7a6e, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &652415331442646963
GameObject:
m_ObjectHideFlags: 0
@@ -227,7 +243,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &4887657808625157883
RectTransform:
m_ObjectHideFlags: 0
@@ -1170,9 +1186,6 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4733240151297030649}
- {fileID: 7764230924738659234}
- {fileID: 7498466727035974352}
- {fileID: 3893907938536155103}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
@@ -1219,7 +1232,7 @@ MonoBehaviour:
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1920, y: 1080}
m_ScreenMatchMode: 0
m_ScreenMatchMode: 1
m_MatchWidthOrHeight: 0.5
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
@@ -1785,13 +1798,13 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4842117009313819197}
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: 931218065942683726}
m_Father: {fileID: 761104765373339944}
m_Father: {fileID: 4733240151297030649}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
@@ -1867,7 +1880,7 @@ RectTransform:
m_Children:
- {fileID: 9176320134699391305}
- {fileID: 9055284487169725321}
m_Father: {fileID: 761104765373339944}
m_Father: {fileID: 4733240151297030649}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1}
@@ -2697,7 +2710,7 @@ RectTransform:
m_Children:
- {fileID: 1550755645343784586}
- {fileID: 2073365934641173985}
m_Father: {fileID: 761104765373339944}
m_Father: {fileID: 4733240151297030649}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
@@ -2982,7 +2995,7 @@ RectTransform:
m_Father: {fileID: 7949169664028140168}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 20, y: 20}
m_Pivot: {x: 0.5, y: 0.5}