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
+31 -31
View File
@@ -205,8 +205,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
@@ -314,7 +314,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: 381.6, y: 93.6}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &223326613
MonoBehaviour:
@@ -442,8 +442,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: -27.7}
m_SizeDelta: {x: 515.5, y: 111.1}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &377938485
MonoBehaviour:
@@ -619,8 +619,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
@@ -928,8 +928,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: 376}
m_SizeDelta: {x: 570.5, y: 147.7}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &633159004
MonoBehaviour:
@@ -978,8 +978,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
@@ -995,7 +995,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
@@ -1208,10 +1208,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
@@ -1345,8 +1345,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
@@ -1362,7 +1362,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
@@ -1531,8 +1531,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
@@ -1637,8 +1637,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: 759.5001, y: 478.62}
m_SizeDelta: {x: 401, y: 115.4}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1368792133
MonoBehaviour:
@@ -1687,8 +1687,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
@@ -1824,8 +1824,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
@@ -1912,8 +1912,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: -771.2, y: 478.62}
m_SizeDelta: {x: 377.6, y: 124.8}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1573414419
GameObject:
@@ -2045,8 +2045,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: -155.2}
m_SizeDelta: {x: 265.9, y: 95.5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1584704080
MonoBehaviour:
@@ -2174,8 +2174,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: -281.1}
m_SizeDelta: {x: 212.4, y: 90.3}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1643871633
MonoBehaviour: