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
+30 -30
View File
@@ -262,8 +262,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: 22}
m_SizeDelta: {x: 403.3, y: 74.6}
m_AnchoredPosition: {x: 0, y: -29.1}
m_SizeDelta: {x: 520.2, y: 93.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &88922121
MonoBehaviour:
@@ -391,8 +391,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: -135}
m_SizeDelta: {x: 177.3, y: 64.6}
m_AnchoredPosition: {x: -0, y: -285.2}
m_SizeDelta: {x: 216.1, y: 91.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &332295496
MonoBehaviour:
@@ -643,8 +643,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 64
m_fontSizeBase: 64
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -731,8 +731,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: -372, y: 241}
m_SizeDelta: {x: 200, y: 50}
m_AnchoredPosition: {x: -761.85, y: 478.62}
m_SizeDelta: {x: 396.3, y: 124.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &488143136
GameObject:
@@ -914,8 +914,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 65
m_fontSizeBase: 65
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -1052,10 +1052,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
@@ -1170,8 +1170,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 36
m_fontSizeBase: 36
m_fontSize: 64
m_fontSizeBase: 64
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -1258,8 +1258,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: 170}
m_SizeDelta: {x: 278.8, y: 85.8}
m_AnchoredPosition: {x: 715.4, y: 474.77}
m_SizeDelta: {x: 489.2, y: 132.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1040909057
GameObject:
@@ -1298,7 +1298,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.000061035, y: 103}
m_SizeDelta: {x: 284.1, y: 69.6}
m_SizeDelta: {x: 388.5, y: 80.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1040909059
MonoBehaviour:
@@ -1566,8 +1566,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 65
m_fontSizeBase: 65
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -1795,8 +1795,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 65
m_fontSizeBase: 65
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2032,8 +2032,8 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 65
m_fontSizeBase: 65
m_fontSize: 82
m_fontSizeBase: 82
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
@@ -2376,8 +2376,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: -57}
m_SizeDelta: {x: 212.1, y: 62.1}
m_AnchoredPosition: {x: 0.000061035, y: -158}
m_SizeDelta: {x: 286.2, y: 82.6}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1952506482
MonoBehaviour:
@@ -2503,8 +2503,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: 187}
m_SizeDelta: {x: 383.5, y: 82.3}
m_AnchoredPosition: {x: 0, y: 393}
m_SizeDelta: {x: 603.2, y: 147.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2102178853
MonoBehaviour:
@@ -2553,8 +2553,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
@@ -2570,7 +2570,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