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"; }
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; }
public void ShowWatches(bool show) { if (show) { logWatch = (LogWatcher)EditorWindow.GetWindow(typeof(LogWatcher)); logWatch.titleContent.text = "Log Watches"; } else { logWatch.Close(); logWatch = null; } }