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

@@ -1204,7 +1204,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3748514453644374350}
m_Father: {fileID: 8757641668296036231}
m_Father: {fileID: 4760497490744360200}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
@@ -2245,18 +2245,18 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3111236585222825448}
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: 1868980129245571363}
- {fileID: 2448940093655542050}
m_Father: {fileID: 8757641668296036231}
m_Father: {fileID: 4760497490744360200}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -100, y: -30}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 940, y: -40}
m_SizeDelta: {x: 660, y: -260}
m_Pivot: {x: 1, y: 0.5}
--- !u!1 &3204152513616998047
@@ -2504,10 +2504,7 @@ RectTransform:
m_LocalScale: {x: 0, y: 0, z: 0}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 5597899927436761229}
- {fileID: 5497518096438283056}
- {fileID: 3280644615170995712}
- {fileID: 8856578722473345802}
- {fileID: 4760497490744360200}
- {fileID: 4746103566376610781}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -2555,7 +2552,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
@@ -2899,12 +2896,12 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4104720381199224404}
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: []
m_Father: {fileID: 8757641668296036231}
m_Father: {fileID: 4760497490744360200}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
@@ -4133,7 +4130,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5179214324631122276}
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
@@ -4141,11 +4138,11 @@ RectTransform:
- {fileID: 6783469586413991124}
- {fileID: 8006700817135627474}
- {fileID: 905340339734798737}
m_Father: {fileID: 8757641668296036231}
m_Father: {fileID: 4760497490744360200}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 200, y: -30}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -840, y: -40}
m_SizeDelta: {x: 910, y: -260}
m_Pivot: {x: 0, y: 0.5}
--- !u!1 &5311323319972475408
@@ -4741,9 +4738,9 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: -20}
m_AnchoredPosition: {x: -150, y: -20}
m_SizeDelta: {x: 150, y: -40}
m_Pivot: {x: 1, y: 0.5}
m_Pivot: {x: 0, y: 0.5}
--- !u!114 &7692963846689867117
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -6273,6 +6270,45 @@ RectTransform:
m_AnchoredPosition: {x: -8, y: 0}
m_SizeDelta: {x: -108, y: 50}
m_Pivot: {x: 1, y: 0.5}
--- !u!1 &8368217112560033755
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4760497490744360200}
m_Layer: 0
m_Name: SafeArea
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4760497490744360200
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8368217112560033755}
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: 5597899927436761229}
- {fileID: 5497518096438283056}
- {fileID: 3280644615170995712}
- {fileID: 8856578722473345802}
m_Father: {fileID: 8757641668296036231}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &8387423531455542859
GameObject:
m_ObjectHideFlags: 0
@@ -7467,7 +7503,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1252597083677857153, guid: 337e10d50a493a74f9362a255e6df564, type: 3}
propertyPath: m_AnchoredPosition.x
value: 100
value: 200
objectReference: {fileID: 0}
- target: {fileID: 1252597083677857153, guid: 337e10d50a493a74f9362a255e6df564, type: 3}
propertyPath: m_AnchoredPosition.y