private EditableGroupType AddGroup(GroupType groupType) { var group = ItemsPanel.AddUIComponent <EditableGroupType>(); group.Init(groupType, GroupName(groupType)); group.width = ItemsPanel.width; Groups[groupType] = group; return(group); }