internal static void SetMainWindowSize(int w, int h) { var pos = EditorWindowUtils.GetEditorMainWindowPos(); pos.width = w; pos.height = h; EditorWindowUtils.SetEditorMainWindowPos(pos); }