コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ReflectedProperty GetChildAt(int idx)
 {
     return(root.ChildAt(idx));
 }