From 95dbd322bd2e4d96eb6190e7ee7a300ecfdd4ade Mon Sep 17 00:00:00 2001 From: Florian Glawogger <73254596+FlorianGlawogger@users.noreply.github.com> Date: Thu, 20 Feb 2025 09:41:33 +0100 Subject: [PATCH] Fully scroll up in experiments category in main menu --- .../scrMenuColumnLaboratorySelectionDetail.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/unity/Assets/Maroon/reusableGui/Menu/PrefabsColumns/scrMenuColumnLaboratorySelectionDetail.cs b/unity/Assets/Maroon/reusableGui/Menu/PrefabsColumns/scrMenuColumnLaboratorySelectionDetail.cs index 72fee81e0..73674fab0 100644 --- a/unity/Assets/Maroon/reusableGui/Menu/PrefabsColumns/scrMenuColumnLaboratorySelectionDetail.cs +++ b/unity/Assets/Maroon/reusableGui/Menu/PrefabsColumns/scrMenuColumnLaboratorySelectionDetail.cs @@ -1,5 +1,6 @@ using GEAR.Localization.Text; using Maroon.GlobalEntities; +using System.Collections; using UnityEngine; using UnityEngine.UI; @@ -21,12 +22,12 @@ public class scrMenuColumnLaboratorySelectionDetail : MonoBehaviour [SerializeField] private GameObject ExperimentButtonPrefab; - private void Start() + private IEnumerator Start() { // Do not init anything if no category is selected, because no lab can be built and no experiments will show up if(SceneManager.Instance.ActiveSceneCategory == null) { - return; + yield break; } // Update Title @@ -61,6 +62,11 @@ private void Start() newButton.GetComponent