public static bool Collapsible(bool open, string title, float width, System.Action menu, System.Action content, GUIStyle style) { Layout.Horizontal(() => { GUILayoutOption[] options = new GUILayoutOption[0]; if (width >= 0) { options = options.Append(Layout.Width(width)); } Layout.Horizontal(() => { open = Foldout(open, title, true, style); }, options); menu?.Invoke(); }); if (open) { content(); } return(open); }