From 1e1f618ff179346915b1ed19c92962c003793c1d Mon Sep 17 00:00:00 2001 From: haitem Date: Sat, 30 Jan 2021 23:53:44 +0100 Subject: [PATCH] Scroll bar changes --- Assets/Scenes/MainMenu.unity | 29 ++++++++++++++++++++++------- Assets/Scripts/MainMenu.cs | 2 -- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/Assets/Scenes/MainMenu.unity b/Assets/Scenes/MainMenu.unity index 82fa785..4e2b0f6 100644 --- a/Assets/Scenes/MainMenu.unity +++ b/Assets/Scenes/MainMenu.unity @@ -362,7 +362,7 @@ RectTransform: m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} - m_AnchorMax: {x: 1, y: 1} + m_AnchorMax: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 20, y: 20} m_Pivot: {x: 0.5, y: 0.5} @@ -579,7 +579,7 @@ MonoBehaviour: m_EditorClassIdentifier: m_Content: {fileID: 670392559} m_Horizontal: 0 - m_Vertical: 0 + m_Vertical: 1 m_MovementType: 1 m_Elasticity: 0.1 m_Inertia: 1 @@ -589,7 +589,7 @@ MonoBehaviour: m_HorizontalScrollbar: {fileID: 333099349} m_VerticalScrollbar: {fileID: 1994990328} m_HorizontalScrollbarVisibility: 0 - m_VerticalScrollbarVisibility: 1 + m_VerticalScrollbarVisibility: 0 m_HorizontalScrollbarSpacing: -3 m_VerticalScrollbarSpacing: -3 m_OnValueChanged: @@ -1756,7 +1756,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &824343031 RectTransform: m_ObjectHideFlags: 0 @@ -2114,7 +2114,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &1137272331 RectTransform: m_ObjectHideFlags: 0 @@ -2466,6 +2466,7 @@ GameObject: - component: {fileID: 1357865956} - component: {fileID: 1357865955} - component: {fileID: 1357865954} + - component: {fileID: 1357865957} m_Layer: 0 m_Name: Viewport m_TagString: Untagged @@ -2543,6 +2544,20 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1357865952} m_CullTransparentMesh: 0 +--- !u!114 &1357865957 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1357865952} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 3245ec927659c4140ac4f8d17403cc18, type: 3} + m_Name: + m_EditorClassIdentifier: + m_HorizontalFit: 0 + m_VerticalFit: 0 --- !u!1 &1389261535 GameObject: m_ObjectHideFlags: 0 @@ -3935,8 +3950,8 @@ RectTransform: m_AnchorMin: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1} m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 20, y: -17} - m_Pivot: {x: 1, y: 1} + m_SizeDelta: {x: 20, y: 0} + m_Pivot: {x: 1, y: 0.5} --- !u!114 &1994990328 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/MainMenu.cs b/Assets/Scripts/MainMenu.cs index f8123d2..56d4997 100644 --- a/Assets/Scripts/MainMenu.cs +++ b/Assets/Scripts/MainMenu.cs @@ -48,8 +48,6 @@ public class MainMenu : MonoBehaviour // Show results as text Debug.Log(www.downloadHandler.text); ScoreText.text = www.downloadHandler.text; - // Or retrieve results as binary data - byte[] results = www.downloadHandler.data; } } }