Compare commits

..

1 Commits

Author SHA1 Message Date
정영민
04325eed1b Window UI 동적 크기 조절 기능 개선 2025-06-12 18:08:43 +09:00
17 changed files with 8854 additions and 8499 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 312 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 3797cfc33764831419bbd1d5616fbfe3
guid: b3cbdc9e38ae3da4e8b6701e7e934ddb
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
@@ -39,7 +39,7 @@ TextureImporter:
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
@@ -49,7 +49,7 @@ TextureImporter:
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteBorder: {x: 35, y: 35, z: 35, w: 35}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
@@ -101,7 +101,7 @@ TextureImporter:
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
internalID: 1537655665
vertices: []
indices:
edges: []

Binary file not shown.

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9ad2e6fcfec6626429b52e881c7016ab

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -222,6 +222,7 @@ GameObject:
- component: {fileID: 1197957687186975473}
- component: {fileID: 5971627106672606343}
- component: {fileID: 8710411372271208689}
- component: {fileID: 816150611273563526}
m_Layer: 5
m_Name: BG
m_TagString: Untagged
@@ -276,8 +277,8 @@ MonoBehaviour:
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 3797cfc33764831419bbd1d5616fbfe3, type: 3}
m_Type: 0
m_Sprite: {fileID: 21300000, guid: b3cbdc9e38ae3da4e8b6701e7e934ddb, type: 3}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
@@ -285,7 +286,22 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
m_PixelsPerUnitMultiplier: 5
--- !u!114 &816150611273563526
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 722574966460495938}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e19747de3f5aca642ab2be37e372fb86, type: 3}
m_Name:
m_EditorClassIdentifier:
m_EffectColor: {r: 0.4716981, g: 0.4716981, b: 0.4716981, a: 1}
m_EffectDistance: {x: 1, y: -1}
m_UseGraphicAlpha: 1
--- !u!1 &841623465959028125
GameObject:
m_ObjectHideFlags: 0
@@ -323,7 +339,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 60}
m_SizeDelta: {x: -8, y: 60}
m_Pivot: {x: 0, y: 1}
--- !u!114 &1157651706919473054
MonoBehaviour:
@@ -346,7 +362,7 @@ MonoBehaviour:
m_Spacing: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
@@ -550,8 +566,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 185, y: -45}
m_SizeDelta: {x: 370, y: 30}
m_AnchoredPosition: {x: 185.95985, y: -45}
m_SizeDelta: {x: 371.9197, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8020508209831355947
CanvasRenderer:
@@ -716,10 +732,10 @@ RectTransform:
- {fileID: 8421435154749210375}
m_Father: {fileID: 1499087042103211668}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 204.04016, y: -273.19983}
m_SizeDelta: {x: 391.9197, y: 507.6005}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 4.040222, y: -9.69989}
m_SizeDelta: {x: -8.0803, y: -19.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4159237727130209232
CanvasRenderer:
@@ -954,9 +970,9 @@ RectTransform:
- {fileID: 6095960281887381814}
m_Father: {fileID: 6313436310002932041}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 100, y: -45}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4716705531179879204
@@ -1081,8 +1097,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 186, y: -45}
m_SizeDelta: {x: 370, y: 30}
m_AnchoredPosition: {x: 186.45985, y: -45}
m_SizeDelta: {x: 370.9197, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5341641337445445415
CanvasRenderer:
@@ -1747,7 +1763,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &6258750310946521674
RectTransform:
m_ObjectHideFlags: 0
@@ -1767,7 +1783,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 960, y: -545}
m_SizeDelta: {x: 620, y: 590}
m_SizeDelta: {x: 600, y: 570}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3353742551616892784
CanvasRenderer:
@@ -1795,7 +1811,7 @@ MonoBehaviour:
handleThickness: 5
minWidth: 100
minHeight: 100
isCanResize: 0
isCanResize: 1
--- !u!114 &8201151630148506142
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -1843,9 +1859,9 @@ RectTransform:
- {fileID: 2137683431264497749}
m_Father: {fileID: 6313436310002932041}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 100, y: -15}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4494802177436443442
@@ -2329,10 +2345,10 @@ RectTransform:
- {fileID: 1499087042103211668}
m_Father: {fileID: 2704661075486488623}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 400, y: -306.5}
m_SizeDelta: {x: 400, y: 527}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 100, y: -21.5}
m_SizeDelta: {x: -200, y: -43}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1484552846489531787
CanvasRenderer:
@@ -2496,7 +2512,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &1098354475033513177
RectTransform:
m_ObjectHideFlags: 0
@@ -2573,9 +2589,9 @@ MonoBehaviour:
m_Bottom: 0
m_ChildAlignment: 0
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
@@ -2627,10 +2643,10 @@ RectTransform:
- {fileID: 2442274882161231674}
m_Father: {fileID: 6006139587084553151}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 200, y: -263.5}
m_SizeDelta: {x: 400, y: 527}
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!222 &8798066567795516779
CanvasRenderer:
@@ -2690,9 +2706,9 @@ RectTransform:
m_Father: {fileID: 2704661075486488623}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 100, y: 263.5}
m_SizeDelta: {x: 200, y: 527}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 100, y: -21.5}
m_SizeDelta: {x: 200, y: -43}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5452116944728555133
CanvasRenderer:
@@ -2806,9 +2822,9 @@ RectTransform:
m_Father: {fileID: 892615477091889523}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 185, y: -15}
m_SizeDelta: {x: 370, y: 30}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -15}
m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4377169821980224420
CanvasRenderer:
@@ -2881,10 +2897,10 @@ RectTransform:
m_Children: []
m_Father: {fileID: 6006139587084553151}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 200, y: -263.5}
m_SizeDelta: {x: 400, y: 527}
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!222 &1689179806207599886
CanvasRenderer:
@@ -3048,8 +3064,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 186, y: -15}
m_SizeDelta: {x: 370, y: 30}
m_AnchoredPosition: {x: 186.45985, y: -15}
m_SizeDelta: {x: 370.9197, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2443905041471534472
CanvasRenderer:
@@ -3199,10 +3215,10 @@ RectTransform:
- {fileID: 7029407300055125623}
m_Father: {fileID: 1731001107546235119}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 204.04016, y: -273.19977}
m_SizeDelta: {x: 391.9197, y: 507.6005}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 4.040207, y: -9.699799}
m_SizeDelta: {x: -8.0803, y: -19.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2031750109702178749
CanvasRenderer:
@@ -3277,8 +3293,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 185, y: -15}
m_SizeDelta: {x: 370, y: 30}
m_AnchoredPosition: {x: 185.95985, y: -15}
m_SizeDelta: {x: 371.9197, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5315960462025597793
CanvasRenderer:
@@ -3398,8 +3414,8 @@ RectTransform:
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: 5}
m_SizeDelta: {x: -20, y: -20}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &6844377220822132301
GameObject:
@@ -3437,9 +3453,9 @@ RectTransform:
m_Father: {fileID: 2704661075486488623}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 300, y: -21.5}
m_SizeDelta: {x: 600, y: 43}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -21.5}
m_SizeDelta: {x: 0, y: 43}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6975364594946750974
CanvasRenderer:
@@ -3526,9 +3542,9 @@ RectTransform:
m_Father: {fileID: 826148551711380091}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 185, y: -15}
m_SizeDelta: {x: 370, y: 30}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -15}
m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8674643351069073137
CanvasRenderer:
@@ -3605,7 +3621,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 60}
m_SizeDelta: {x: -7, y: 60}
m_Pivot: {x: 0, y: 1}
--- !u!114 &1188044125300980433
MonoBehaviour:
@@ -3626,9 +3642,9 @@ MonoBehaviour:
m_Bottom: 0
m_ChildAlignment: 0
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandWidth: 1
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
@@ -4463,10 +4479,10 @@ RectTransform:
- {fileID: 932603579046823342}
m_Father: {fileID: 6006139587084553151}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 200, y: -263.5}
m_SizeDelta: {x: 400, y: 527}
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!222 &6165829422737385783
CanvasRenderer:
@@ -4523,9 +4539,9 @@ RectTransform:
- {fileID: 2515676056011498856}
m_Father: {fileID: 6313436310002932041}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 100, y: -75}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 200, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8214551017895397311

File diff suppressed because it is too large Load Diff

View File

@@ -414,11 +414,11 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 9173664286363540611}
m_Father: {fileID: 6653768687723039217}
m_Father: {fileID: 1487009679554918163}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 208.94434, y: -239.58394}
m_AnchoredPosition: {x: 208.94434, y: -154.58943}
m_SizeDelta: {x: 379.8972, y: 309.1779}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &3101259340876616321
@@ -495,7 +495,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: -0.00034048597, y: -0.00000043238896}
m_AnchoredPosition: {x: -0.00034048597, y: 0.00004343147}
m_SizeDelta: {x: 282.99957, y: 2}
m_Pivot: {x: 0, y: 1}
--- !u!114 &8511847140840865857
@@ -1332,6 +1332,42 @@ MonoBehaviour:
m_EditorClassIdentifier:
m_Padding: {x: -8, y: -5, z: -8, w: -5}
m_Softness: {x: 0, y: 0}
--- !u!1 &5076393577705684712
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1487009679554918163}
m_Layer: 5
m_Name: Area
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1487009679554918163
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5076393577705684712}
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: 3108930383675076429}
m_Father: {fileID: 6653768687723039217}
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: -42.497}
m_SizeDelta: {x: 0, y: -84.995}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &5647078525317105949
GameObject:
m_ObjectHideFlags: 0
@@ -1459,7 +1495,7 @@ RectTransform:
m_Children:
- {fileID: 7123446324375067522}
- {fileID: 7404116763227427288}
- {fileID: 3108930383675076429}
- {fileID: 1487009679554918163}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
@@ -1485,7 +1521,7 @@ MonoBehaviour:
handleThickness: 5
minWidth: 100
minHeight: 100
isCanResize: 0
isCanResize: 1
--- !u!114 &7420623846080680445
MonoBehaviour:
m_ObjectHideFlags: 0
@@ -2366,7 +2402,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1456553455777821898}
m_Direction: 2
m_Value: 0
m_Size: 1
m_Size: 0.9999941
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:

File diff suppressed because it is too large Load Diff

View File

@@ -454,9 +454,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 386, y: -105}
m_SizeDelta: {x: 272, y: 20}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -110}
m_SizeDelta: {x: -333, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8354707506148702448
CanvasRenderer:
@@ -664,7 +664,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -22.5, y: -28.3}
m_AnchoredPosition: {x: -15, y: -28.3}
m_SizeDelta: {x: 20, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8206741141358572196
@@ -917,9 +917,9 @@ RectTransform:
- {fileID: 6057637889551911416}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -159.4, y: -30}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -30}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3043824308046320062
@@ -965,9 +965,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 375, y: -70}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -70}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1294127454145776225
CanvasRenderer:
@@ -1141,10 +1141,10 @@ RectTransform:
- {fileID: 2081494434516734423}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 375, y: 30}
m_SizeDelta: {x: 250, y: 40}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -190}
m_SizeDelta: {x: -333, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4316208365858436923
CanvasRenderer:
@@ -1186,9 +1186,9 @@ RectTransform:
- {fileID: 142915062235120931}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -159.40002, y: -70}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -70}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4537039872149209678
@@ -1243,10 +1243,10 @@ RectTransform:
- {fileID: 4620234391147991730}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -960, y: -1080}
m_SizeDelta: {x: -420, y: 220}
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: 583, y: 220}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2575719433142104857
CanvasRenderer:
@@ -1331,9 +1331,9 @@ RectTransform:
- {fileID: 2767735103542067230}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -159.40002, y: -110}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -110}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &426634218618136846
@@ -2906,10 +2906,10 @@ RectTransform:
- {fileID: 7115248029429128929}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 375, y: 70}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -150}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4708186645858634878
CanvasRenderer:
@@ -3028,9 +3028,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 375.00003, y: -30}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -30.300003}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6749344978886352018
CanvasRenderer:

View File

@@ -245,10 +245,10 @@ RectTransform:
- {fileID: 9077978097104377710}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
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: 370, y: 30}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -15}
m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2038215860680662931
CanvasRenderer:
@@ -305,9 +305,9 @@ RectTransform:
m_Father: {fileID: 6376616067819932159}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 185, y: -15}
m_SizeDelta: {x: 370, y: 30}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -15}
m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5338755847443157427
CanvasRenderer:
@@ -414,7 +414,7 @@ MonoBehaviour:
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlWidth: 1
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
@@ -465,9 +465,9 @@ RectTransform:
- {fileID: 3504009785478294066}
m_Father: {fileID: 4369170814888687918}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 168.5, y: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -16.5, y: 0}
m_SizeDelta: {x: 14, y: 14}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &7354789801490151204

View File

@@ -213,10 +213,10 @@ RectTransform:
- {fileID: 2836278613756631073}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 370, y: 30}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: -15}
m_SizeDelta: {x: 0, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5777527875498688109
CanvasRenderer:

View File

@@ -454,9 +454,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 386, y: -105}
m_SizeDelta: {x: 272, y: 20}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -110}
m_SizeDelta: {x: -333, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8354707506148702448
CanvasRenderer:
@@ -664,7 +664,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -22.5, y: -28.3}
m_AnchoredPosition: {x: -15, y: -28.3}
m_SizeDelta: {x: 20, y: 20}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8206741141358572196
@@ -917,9 +917,9 @@ RectTransform:
- {fileID: 6057637889551911416}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -160.2, y: -30}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -30}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3043824308046320062
@@ -965,9 +965,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 375, y: -70}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -70}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1294127454145776225
CanvasRenderer:
@@ -1141,10 +1141,10 @@ RectTransform:
- {fileID: 2081494434516734423}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 375, y: 30}
m_SizeDelta: {x: 250, y: 40}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -190}
m_SizeDelta: {x: -333, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4316208365858436923
CanvasRenderer:
@@ -1186,9 +1186,9 @@ RectTransform:
- {fileID: 142915062235120931}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -160.20001, y: -70}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -70}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4537039872149209678
@@ -1246,7 +1246,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1500, y: 220}
m_SizeDelta: {x: 583, y: 220}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2575719433142104857
CanvasRenderer:
@@ -1332,9 +1332,9 @@ RectTransform:
- {fileID: 2767735103542067230}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: -160.20001, y: -110}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 125, y: -110}
m_SizeDelta: {x: 250, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &426634218618136846
@@ -2907,10 +2907,10 @@ RectTransform:
- {fileID: 7115248029429128929}
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 375, y: 70}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -150}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4708186645858634878
CanvasRenderer:
@@ -3029,9 +3029,9 @@ RectTransform:
m_Father: {fileID: 6029866318953262369}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 375.00003, y: -30}
m_SizeDelta: {x: 250, y: 24}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 83.5, y: -30.300003}
m_SizeDelta: {x: -333, y: 24}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6749344978886352018
CanvasRenderer:

File diff suppressed because it is too large Load Diff

View File

@@ -244,9 +244,6 @@ namespace Studio.Manage
foreach (var mf in meshFilters)
{
if (mf.sharedMesh.isReadable)
continue;
if (mf.sharedMesh != null)
{
int tris = mf.sharedMesh.triangles.Length / 3;
@@ -256,9 +253,6 @@ namespace Studio.Manage
foreach (var smr in skinnedRenderers)
{
if (smr.sharedMesh.isReadable)
continue;
if (smr.sharedMesh != null)
{
int tris = smr.sharedMesh.triangles.Length / 3;

View File

@@ -40,8 +40,8 @@ namespace Studio.UI
public ResizeDirection resizeDirection;
public float handleThickness = 5f;
public float minWidth = 100;
public float minHeight = 100;
public float minWidth;
public float minHeight;
Vector2 mouseOffset;
@@ -71,6 +71,8 @@ namespace Studio.UI
{
Debug.LogError("GUIWindow에 Header가 없음: " + gameObject.name);
}
minWidth = rect.rect.width;
minHeight = rect.rect.height;
onEnableEvent += (a)=>InitializeState();
onDisableEvent += (a) => InitializeState();
@@ -120,17 +122,19 @@ namespace Studio.UI
public void OnPointerEnter(PointerEventData eventData)
{
cursorManager.currentUseGUIWindow = this;
cursorManager.currentUseGUIWindow = this;
}
public ResizeDirection GetHandleDirection()
{
Vector2 localPoint;
RectTransformUtility.ScreenPointToLocalPointInRectangle(rect, Input.mousePosition, null, out localPoint);
var rectArea = isCanResize ? Area : rect;
if (!rect.rect.Contains(localPoint)) return ResizeDirection.None;
RectTransformUtility.ScreenPointToLocalPointInRectangle(rectArea, Input.mousePosition, null, out localPoint);
Vector2 size = rect.rect.size;
if (!rectArea.rect.Contains(localPoint)) return ResizeDirection.None;
Vector2 size = rectArea.rect.size;
float halfWidth = size.x / 2;
float halfHeight = size.y / 2;
@@ -170,7 +174,6 @@ namespace Studio.UI
initialMousePos = Input.mousePosition;
initialSize = rect.sizeDelta;
initialPivot = rect.pivot;
resizeDirection = dir;
switch (resizeDirection)
@@ -276,21 +279,66 @@ namespace Studio.UI
}
else
{
rect.sizeDelta = size;
if (CanResizeRectTransform(rect, size))
{
rect.sizeDelta = size;
}
}
}
public bool CanResizeRectTransform(RectTransform rect, Vector2 newSize)
{
if (rect == null) return false;
// 기존 사이즈와 비교
Vector2 currentSize = rect.rect.size;
bool isShrinking = newSize.x <= currentSize.x && newSize.y <= currentSize.y;
// 축소면 무조건 허용
if (isShrinking)
return true;
// 확장이라면 화면 안에 있을 때만 허용
return IsRectTransformInsideCanvas(rect);
}
public bool IsRectTransformInsideCanvas(RectTransform targetRect)
{
if (targetRect == null)
return false;
Canvas rootCanvas = targetRect.GetComponentInParent<Canvas>();
if (rootCanvas == null || !rootCanvas.pixelRect.Contains(Vector2.zero))
return false;
RectTransform canvasRect = rootCanvas.GetComponent<RectTransform>();
Vector3[] worldCorners = new Vector3[4];
targetRect.GetWorldCorners(worldCorners);
foreach (var corner in worldCorners)
{
Vector3 viewportPoint = RectTransformUtility.WorldToScreenPoint(null, corner);
// Canvas 크기 기준으로 판단
if (viewportPoint.x < 0 || viewportPoint.y < 0 ||
viewportPoint.x > Screen.width || viewportPoint.y > Screen.height)
{
return false; // 하나라도 화면 밖에 있음
}
}
return true;
}
void SetPanelPivot(Vector2 pivot)
{
RectTransform temp = rect;
if (rect == null)
return;
if(Area != null)
temp = Area;
if (temp == null) return;
Vector2 size = temp.rect.size;
Vector2 deltaPivot = temp.pivot - pivot;
Vector2 size = rect.rect.size;
Vector2 deltaPivot = rect.pivot - pivot;
Vector3 deltaPosition = new Vector3(deltaPivot.x * size.x, deltaPivot.y * size.y);
rect.pivot = pivot;
rect.localPosition -= deltaPosition;