#pragma warning restore 649 public static void UpdateChildrenProperly(this KMSelectable selectable, KMSelectable childToSelect = null) { foreach (var child in selectable.Children) { child.UpdateSettings(); } selectable.UpdateSettings(); selectable.UpdateChildren(childToSelect); }