Window which displays a scrollable text area and two buttons at the bottom.
Inheritance: EditorWindow
コード例 #1
0
ファイル: TextAreaDialog.cs プロジェクト: slove3000/Usdk
        public static TextAreaDialog CreateTextAreaDialog(string title)
        {
            TextAreaDialog textAreaDialog = (TextAreaDialog)EditorWindow.GetWindow(typeof(TextAreaDialog), true, title, true);

            textAreaDialog.Initialize();
            return(textAreaDialog);
        }
コード例 #2
0
 /// <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); };
 }