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
+33 -32
View File
@@ -155,8 +155,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: 353}
m_SizeDelta: {x: 715.4, y: 185.1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &37493291
MonoBehaviour:
@@ -205,8 +205,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
@@ -222,7 +222,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
@@ -311,8 +311,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: 164}
m_SizeDelta: {x: 381.1, y: 69.3}
m_AnchoredPosition: {x: 0, y: 356}
m_SizeDelta: {x: 685, y: 139.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &74769223
MonoBehaviour:
@@ -361,8 +361,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
@@ -378,7 +378,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
@@ -468,7 +468,7 @@ RectTransform:
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 54}
m_SizeDelta: {x: 381.1, y: 69.3}
m_SizeDelta: {x: 675.6, y: 114.3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &102969452
MonoBehaviour:
@@ -517,7 +517,7 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 37.15
m_fontSize: 65.85
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
@@ -705,8 +705,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
@@ -1282,8 +1282,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: 24}
m_SizeDelta: {x: 284.1, y: 69.6}
m_AnchoredPosition: {x: 0, y: 150.6}
m_SizeDelta: {x: 396.3, y: 101.6}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &312387579
MonoBehaviour:
@@ -1976,8 +1976,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, y: 5.1}
m_SizeDelta: {x: 276.6, y: 88.1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &555010821
MonoBehaviour:
@@ -3775,8 +3775,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
@@ -3792,7 +3792,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
@@ -3931,8 +3931,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
@@ -4554,7 +4554,7 @@ RectTransform:
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_SizeDelta: {x: 233.1, y: 88}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1605175647
MonoBehaviour:
@@ -4814,8 +4814,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: -136}
m_SizeDelta: {x: 111.7, y: 66.2}
m_AnchoredPosition: {x: 0, y: -259.4}
m_SizeDelta: {x: 127.9, y: 85.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1654112657
MonoBehaviour:
@@ -4967,10 +4967,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
@@ -5035,6 +5035,7 @@ MonoBehaviour:
gameOverUI: {fileID: 1629329804}
ScoreText: {fileID: 102969452}
TimeText: {fileID: 1745227032}
LivesText: {fileID: 0}
--- !u!1 &1734965523
GameObject:
m_ObjectHideFlags: 0
@@ -5162,8 +5163,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: -27}
m_SizeDelta: {x: 381.1, y: 69.3}
m_AnchoredPosition: {x: 0, y: -79.6}
m_SizeDelta: {x: 675.6, y: 114.3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1745227032
MonoBehaviour:
@@ -5212,7 +5213,7 @@ MonoBehaviour:
m_outlineColor:
serializedVersion: 2
rgba: 4278190080
m_fontSize: 56.75
m_fontSize: 72
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
@@ -5886,7 +5887,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