UnityEngine.GUILayoutUtility.LayoutFromEditorWindow C# (CSharp) Method

LayoutFromEditorWindow() static private method

static private LayoutFromEditorWindow ( ) : void
return void
        internal static void LayoutFromEditorWindow()
        {
            current.topLevel.CalcWidth();
            current.topLevel.SetHorizontal(0f, ((float) Screen.width) / GUIUtility.pixelsPerPoint);
            current.topLevel.CalcHeight();
            current.topLevel.SetVertical(0f, ((float) Screen.height) / GUIUtility.pixelsPerPoint);
            LayoutFreeGroup(current.windows);
        }

Usage Example

コード例 #1
0
        internal static void EndGUI(int layoutType)
        {
            try
            {
                if (Event.current.type == EventType.Layout)
                {
                    switch (layoutType)
                    {
                    case 0:     // kNoLayout
                        break;

                    case 1:     // kGameLayout
                        GUILayoutUtility.Layout();
                        break;

                    case 2:     // kEditorLayout
                        GUILayoutUtility.LayoutFromEditorWindow();
                        break;
                    }
                }
                GUILayoutUtility.SelectIDList(s_OriginalID, false);
                GUIContent.ClearStaticCache();
            }
            finally
            {
                Internal_ExitGUI();
            }
        }
All Usage Examples Of UnityEngine.GUILayoutUtility::LayoutFromEditorWindow