示例#1
0
        static void Init()
        {
            // build the log viewer window and set title, also init logwatch to null for first run
            LogWatcher window = (LogWatcher)EditorWindow.GetWindow(typeof(LogWatcher));

            window.titleContent.text = "Log Watcher";
        }
示例#2
0
        static void Init()
        {
            // build the log viewer window and set title
            LogViewer window = (LogViewer)EditorWindow.GetWindow(typeof(LogViewer));

            window.titleContent.text = "Log Viewer";
            logWatch = null;
        }
示例#3
0
 public void ShowWatches(bool show)
 {
     if (show)
     {
         logWatch = (LogWatcher)EditorWindow.GetWindow(typeof(LogWatcher));
         logWatch.titleContent.text = "Log Watches";
     }
     else
     {
         logWatch.Close();
         logWatch = null;
     }
 }