public static float GetChildHeights(ReflectedProperty property) { property.Drawer.Initialize(); float height = 0; for (int i = 0; i < property.ChildCount; i++) { ReflectedProperty child = property.ChildAt(i); if (!child.IsHidden) { height += child.GetPropertyHeight(); } } return(height); }
public static float GetChildHeights(ReflectedProperty property, string[] skipList) { if (skipList == null) { return(GetChildHeights(property)); } property.Drawer.Initialize(); float height = 0; for (int i = 0; i < property.ChildCount; i++) { ReflectedProperty child = property.ChildAt(i); if (child.IsHidden) { continue; } int idx = Array.IndexOf(skipList, child.name); if (idx == -1) { height += child.GetPropertyHeight(); } } return(height); }
public ReflectedProperty GetChildAt(int idx) { return(root.ChildAt(idx)); }