UnityEngine.GUILayoutUtility.LayoutFromInspector C# (CSharp) Method

LayoutFromInspector() static private method

static private LayoutFromInspector ( float width ) : float
width float
return float
        internal static float LayoutFromInspector(float width)
        {
            if ((current.topLevel != null) && (current.topLevel.windowID == -1))
            {
                current.topLevel.CalcWidth();
                current.topLevel.SetHorizontal(0f, width);
                current.topLevel.CalcHeight();
                current.topLevel.SetVertical(0f, Mathf.Min(((float) Screen.height) / GUIUtility.pixelsPerPoint, current.topLevel.maxHeight));
                float minHeight = current.topLevel.minHeight;
                LayoutFreeGroup(current.windows);
                return minHeight;
            }
            if (current.topLevel != null)
            {
                LayoutSingleGroup(current.topLevel);
            }
            return 0f;
        }