protected override void OnGraphViewChanged() { string windowTitle = "Minimap"; if (m_SelectedGraphView != null) { windowTitle += " - " + m_SelectedGraphView.name; m_SelectedGraphView.redrawn += GraphViewRedrawn; } else { ZoomFactorTextChanged(""); } titleContent.text = windowTitle; if (m_MiniMap == null) // Probably called from base.OnEnable(). We're not ready just yet. { return; } m_MiniMap.graphView = m_SelectedGraphView; m_MiniMap.MarkDirtyRepaint(); }
protected override void OnGraphViewChanged() { if (m_SelectedGraphView != null) { m_SelectedGraphView.redrawn += GraphViewRedrawn; } else { ZoomFactorTextChanged(""); } if (m_MiniMap == null) // Probably called from base.OnEnable(). We're not ready just yet. { return; } m_MiniMap.graphView = m_SelectedGraphView; m_MiniMap.MarkDirtyRepaint(); }