public static IEnumerator OpenStandaloneWindowMaximized(string viewTypeName) { var windowType = ProfilerHelpers.GetUnityEditorType(viewTypeName); var window = EditorWindow.GetWindow(windowType); if (window) { window.Close(); } yield return(null); window = EditorWindow.GetWindow(windowType); yield return(null); }
public static EditorWindow OpenStandaloneWindow(string viewTypeName) { var windowType = ProfilerHelpers.GetUnityEditorType(viewTypeName); return(OpenStandaloneWindow(windowType)); }