public static TextAreaDialog CreateTextAreaDialog(string title) { TextAreaDialog textAreaDialog = (TextAreaDialog)EditorWindow.GetWindow(typeof(TextAreaDialog), true, title, true); textAreaDialog.Initialize(); return(textAreaDialog); }
/// <summary> /// Create a log redirector associated with this window. /// </summary> public LogRedirector(TextAreaDialog window) { this.window = window; LogToWindow = (string message, LogLevel level) => LogMessage(message, level); ErrorLogged = false; WarningLogged = false; ShouldLogDelegate = () => { return(true); }; }