Fixed bug where UI wasn't scaling based on screen size

This commit is contained in:
Gregory Campbell
2020-01-19 21:42:41 -05:00
parent 6faa075382
commit dcb5caa720
4 changed files with 176 additions and 175 deletions
+82 -82
View File
@@ -157,8 +157,8 @@ RectTransform:
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: 4.2201e-10, y: 7}
m_SizeDelta: {x: 206, y: 72.9}
m_AnchoredPosition: {x: 4.2201e-10, y: -77.2}
m_SizeDelta: {x: 346, y: 96.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &68978048
MonoBehaviour:
@@ -295,8 +295,8 @@ RectTransform:
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.000030518, y: 9}
m_SizeDelta: {x: 395.5, y: 78.5}
m_AnchoredPosition: {x: 22, y: 39}
m_SizeDelta: {x: 930.9, y: 157.1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &133292478
GameObject:
@@ -334,8 +334,8 @@ RectTransform:
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: -165}
m_SizeDelta: {x: 165.1, y: 78.6}
m_AnchoredPosition: {x: 0, y: -428}
m_SizeDelta: {x: 273.8, y: 122.3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &133292480
MonoBehaviour:
@@ -640,7 +640,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 13, y: 0}
m_SizeDelta: {x: 241.9, y: 35.9}
m_SizeDelta: {x: 711.9, y: 168.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &234944904
MonoBehaviour:
@@ -689,8 +689,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -706,7 +706,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: 0
m_firstOverflowCharacterIndex: -1
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -1151,8 +1151,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 64
m_fontSizeBase: 64
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -1258,7 +1258,7 @@ RectTransform:
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -15, y: 0}
m_SizeDelta: {x: 20, y: 20}
m_SizeDelta: {x: 48.61, y: 38.74}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &378571819
MonoBehaviour:
@@ -1416,12 +1416,12 @@ RectTransform:
m_Children:
- {fileID: 741105116}
m_Father: {fileID: 848526677}
m_RootOrder: 4
m_RootOrder: 5
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: -191}
m_SizeDelta: {x: 160.7, y: 69.3}
m_AnchoredPosition: {x: 0, y: -386}
m_SizeDelta: {x: 260.4, y: 97.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &393633552
MonoBehaviour:
@@ -1559,7 +1559,7 @@ RectTransform:
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: 479.7, y: 361.6}
m_SizeDelta: {x: 1262.9, y: 969.2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &419984832
GameObject:
@@ -1767,8 +1767,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 50
m_fontSizeBase: 50
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2110,7 +2110,7 @@ RectTransform:
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: 679, y: 454.6}
m_SizeDelta: {x: 1599.9, y: 919.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &511552647
MonoBehaviour:
@@ -2159,8 +2159,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: 21, y: -22}
m_SizeDelta: {x: 20, y: 20}
m_AnchoredPosition: {x: -223.1, y: -22.15}
m_SizeDelta: {x: 110.54, y: 87.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &538255950
MonoBehaviour:
@@ -2234,8 +2234,8 @@ RectTransform:
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.000061035, y: -77}
m_SizeDelta: {x: 304.2, y: 77.6}
m_AnchoredPosition: {x: 0, y: -248.5}
m_SizeDelta: {x: 477, y: 115.6}
m_Pivot: {x: 0.5, y: 0.49999994}
--- !u!114 &552329885
MonoBehaviour:
@@ -2422,8 +2422,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 64
m_fontSizeBase: 64
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2651,8 +2651,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 50
m_fontSizeBase: 50
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2757,8 +2757,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: 22.75}
m_SizeDelta: {x: -251.80008, y: -61.00003}
m_AnchoredPosition: {x: 0, y: -18}
m_SizeDelta: {x: 75.7, y: 10.2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &801951093
MonoBehaviour:
@@ -2807,8 +2807,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 32
m_fontSizeBase: 32
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2824,7 +2824,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: -1
m_firstOverflowCharacterIndex: 0
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -2910,15 +2910,15 @@ RectTransform:
- {fileID: 1800527085}
- {fileID: 87693069}
- {fileID: 1263347829}
- {fileID: 393633551}
- {fileID: 1555915347}
- {fileID: 393633551}
m_Father: {fileID: 993906897}
m_RootOrder: 3
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: 654.3, y: 484.8}
m_SizeDelta: {x: 1432.8, y: 1011.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &864888402
GameObject:
@@ -3063,7 +3063,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -7.5, y: -0.5}
m_AnchoredPosition: {x: -7.5, y: -0.4999962}
m_SizeDelta: {x: -35, y: -13}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &930812061
@@ -3112,8 +3112,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 14
m_fontSizeBase: 14
m_fontSize: 64
m_fontSizeBase: 64
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -3129,7 +3129,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: -1
m_firstOverflowCharacterIndex: 0
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -3218,8 +3218,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: 196.6}
m_SizeDelta: {x: -258.8, y: -410.2}
m_AnchoredPosition: {x: 0, y: 384}
m_SizeDelta: {x: -825.7, y: -862.1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &975230258
MonoBehaviour:
@@ -3268,8 +3268,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 84
m_fontSizeBase: 84
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -3285,7 +3285,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: 0
m_firstOverflowCharacterIndex: -1
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -3424,8 +3424,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 64
m_fontSizeBase: 64
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -3441,7 +3441,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: -1
m_firstOverflowCharacterIndex: 0
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -3611,10 +3611,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
@@ -3822,8 +3822,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: 175.3}
m_SizeDelta: {x: 153.7, y: -384}
m_AnchoredPosition: {x: 0, y: 372}
m_SizeDelta: {x: 637.9, y: -260.6}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1168339730
MonoBehaviour:
@@ -3872,8 +3872,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 64
m_fontSizeBase: 64
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -3889,7 +3889,7 @@ MonoBehaviour:
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_firstOverflowCharacterIndex: 0
m_firstOverflowCharacterIndex: -1
m_linkedTextComponent: {fileID: 0}
m_isLinkedTextComponent: 0
m_isTextTruncated: 0
@@ -4050,7 +4050,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.25}
m_AnchorMax: {x: 1, y: 0.75}
m_AnchoredPosition: {x: -4.9999847, y: 0}
m_AnchoredPosition: {x: -5, y: 0}
m_SizeDelta: {x: -20, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1217483733
@@ -4087,7 +4087,7 @@ 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: 146}
m_AnchoredPosition: {x: 0, y: 402}
m_SizeDelta: {x: 25.300003, y: -259.40002}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1217483735
@@ -4139,8 +4139,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 84
m_fontSizeBase: 84
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -4247,8 +4247,8 @@ RectTransform:
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: -112}
m_SizeDelta: {x: 160.7, y: 69.3}
m_AnchoredPosition: {x: 0, y: -340}
m_SizeDelta: {x: 255.7, y: 107.2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1236659685
MonoBehaviour:
@@ -4677,8 +4677,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 64
m_fontSizeBase: 64
m_fontSize: 100
m_fontSizeBase: 100
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -4786,7 +4786,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.000030517, y: 88}
m_SizeDelta: {x: 197.4, y: 66.9}
m_SizeDelta: {x: 297.4, y: 112.7}
m_Pivot: {x: 0.5000001, y: 0.50000024}
--- !u!114 &1417856271
MonoBehaviour:
@@ -4989,11 +4989,11 @@ MonoBehaviour:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontSize: 64
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_MinSize: 6
m_MaxSize: 64
m_Alignment: 3
m_AlignByGeometry: 0
m_RichText: 1
@@ -5131,12 +5131,12 @@ RectTransform:
- {fileID: 1721884495}
- {fileID: 1842138733}
m_Father: {fileID: 848526677}
m_RootOrder: 5
m_RootOrder: 4
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: -138, y: 105}
m_SizeDelta: {x: 182.7, y: 33.6}
m_AnchoredPosition: {x: -218, y: 191}
m_SizeDelta: {x: 364, y: 86.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1555915348
MonoBehaviour:
@@ -5208,8 +5208,8 @@ RectTransform:
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: -88, y: 0}
m_SizeDelta: {x: 200, y: 50}
m_AnchoredPosition: {x: -227, y: 0}
m_SizeDelta: {x: 454, y: 106.2}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1571474461
MonoBehaviour:
@@ -5258,8 +5258,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -5365,7 +5365,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.000015258789, y: -0.000005722046}
m_SizeDelta: {x: 20, y: 20}
m_SizeDelta: {x: 110.54, y: 87.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1613640935
MonoBehaviour:
@@ -5510,8 +5510,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -15, y: 0}
m_SizeDelta: {x: 20, y: 20}
m_AnchoredPosition: {x: -18.4, y: 0}
m_SizeDelta: {x: 50.84, y: 51.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1721884496
MonoBehaviour:
@@ -5582,8 +5582,8 @@ RectTransform:
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: 141, y: 105}
m_SizeDelta: {x: 325.1, y: 73.4}
m_AnchoredPosition: {x: 435, y: 191}
m_SizeDelta: {x: 529.2, y: 111.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1842138732
GameObject:
@@ -5727,8 +5727,8 @@ RectTransform:
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: 4.25, y: -26.25}
m_SizeDelta: {x: 385.8, y: 34.4}
m_AnchoredPosition: {x: 0.000029087, y: -133}
m_SizeDelta: {x: 903.2, y: 61.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1856065825
MonoBehaviour:
@@ -5829,8 +5829,8 @@ RectTransform:
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: 104, y: 0}
m_SizeDelta: {x: 160, y: 30}
m_AnchoredPosition: {x: 244, y: 0}
m_SizeDelta: {x: 388.4, y: 82.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1869152853
MonoBehaviour: