private void RemoveNullWindows() { List<EditorWindow> list = new List<EditorWindow>(); foreach (EditorWindow window in this.m_Panes) { if (window != null) { list.Add(window); } } this.m_Panes = list; }