diff --git a/Assets/Scripts/Editor/ScenarioPickerVerify.cs b/Assets/Scripts/Editor/ScenarioPickerVerify.cs index 8d464f48e..6816cafc9 100644 --- a/Assets/Scripts/Editor/ScenarioPickerVerify.cs +++ b/Assets/Scripts/Editor/ScenarioPickerVerify.cs @@ -85,12 +85,14 @@ public static class ScenarioPickerVerify var groups = real ? ScenarioPickerCapture.AllGroups() : oneGroup ? new List<(string label, Scenario[] scenarios)> { ("modes", screen.A) } : new List<(string label, Scenario[] scenarios)> { ("modes", screen.A), ("development", screen.B), ("test arenas", screen.C) }; + // The menu builds a panel while it is inactive and shows it afterwards; the picker must find its scroll all the same. + if (real) list.gameObject.SetActive(false); screen.Picker = ScenarioPicker.Show(list, detail, groups, screen.Launched.Add, () => screen.Backs++, menu.Dialog.Confirm); var buttons = list.GetComponentsInChildren(false).Where(button => !button.transform.IsChildOf(detail.transform)).Select(button => button.Button).ToArray(); screen.Rows = buttons.Take(buttons.Length - 1).ToArray(); screen.Back = buttons.Last(); screen.Launch = detail.GetComponentsInChildren