void OnDestroy() { if (this.consoleVM != null) { this.consoleVM.Stop(); this.consoleVM = null; } }
void OnEnable() { loggingVerticalScrollBarPercent = 1f; lineHeight = 30; toolbarHeight = 20f; splitterRectHeight = 10f; verticalSplitterPercent = 0.7f; verticalSplitterLineRect = new Rect(0f, (position.height * verticalSplitterPercent), position.width, 1); verticalSplitterRect = new Rect(verticalSplitterLineRect.x, verticalSplitterLineRect.y - splitterRectHeight / 2f, verticalSplitterLineRect.width, splitterRectHeight); this.renderedList = new List <LoggingData>(); this.renderedLineCountList = new List <int>(); if (consoleVM == null) { consoleVM = new ConsoleVM(); } consoleVM.OnEnable(); }