From 0bed7bbea44caf782518e1ebc2052bd0b1d046cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerard=20Gasc=C3=B3n?= <52170489+GerardGascon@users.noreply.github.com> Date: Mon, 15 Apr 2024 17:38:12 +0200 Subject: [PATCH] fix: Correctly resizing with resolution changes --- Assets/Scenes/SampleScene.unity | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Assets/Scenes/SampleScene.unity b/Assets/Scenes/SampleScene.unity index 937567e..4d14d1a 100644 --- a/Assets/Scenes/SampleScene.unity +++ b/Assets/Scenes/SampleScene.unity @@ -254,7 +254,7 @@ MonoBehaviour: m_ScaleFactor: 1 m_ReferenceResolution: {x: 480, y: 480} m_ScreenMatchMode: 0 - m_MatchWidthOrHeight: 1 + m_MatchWidthOrHeight: 0 m_PhysicalUnit: 3 m_FallbackScreenDPI: 96 m_DefaultSpriteDPI: 96 @@ -380,8 +380,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: 0, y: 0} - m_SizeDelta: {x: 85.1734, y: 44.9983} + m_AnchoredPosition: {x: 0, y: -7.7999} + m_SizeDelta: {x: 122.1659, y: 51.509} m_Pivot: {x: 0, y: 1} --- !u!114 &379057222 MonoBehaviour: @@ -430,8 +430,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 20 - m_fontSizeBase: 20 + m_fontSize: 30 + m_fontSizeBase: 30 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 @@ -466,7 +466,7 @@ MonoBehaviour: m_VertexBufferAutoSizeReduction: 0 m_useMaxVisibleDescender: 1 m_pageToDisplay: 1 - m_margin: {x: 11.44591, y: 0, z: 0, w: 0} + m_margin: {x: 21.399256, y: 0, z: 0, w: 0} m_isUsingLegacyAnimationComponent: 0 m_isVolumetricText: 0 m_hasFontAssetChanged: 0 @@ -516,8 +516,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1} - m_AnchoredPosition: {x: -5.850006, y: -5.460022} - m_SizeDelta: {x: 34.0013, y: 34.0013} + m_AnchoredPosition: {x: -8.399994, y: -7.799988} + m_SizeDelta: {x: 51.5091, y: 51.5091} m_Pivot: {x: 1, y: 1} --- !u!114 &439702001 MonoBehaviour: @@ -544,7 +544,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Navigation: - m_Mode: 3 + m_Mode: 0 m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0} @@ -942,7 +942,7 @@ RectTransform: m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} m_AnchoredPosition: {x: 0, y: -1} - m_SizeDelta: {x: 297.0906, y: 178.2544} + m_SizeDelta: {x: 445.3355, y: 267.2014} m_Pivot: {x: 0.5, y: 0.5} --- !u!114 &1127832730 MonoBehaviour: @@ -1085,8 +1085,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} - m_AnchoredPosition: {x: 41.329987, y: 41.79001} - m_SizeDelta: {x: 34.001312, y: 34.001312} + m_AnchoredPosition: {x: 62.66, y: 63.36} + m_SizeDelta: {x: 52.0566, y: 52.0566} m_Pivot: {x: 1, y: 1} --- !u!114 &1640794864 MonoBehaviour: @@ -1101,7 +1101,7 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: m_Navigation: - m_Mode: 3 + m_Mode: 0 m_WrapAround: 0 m_SelectOnUp: {fileID: 0} m_SelectOnDown: {fileID: 0}