public virtual int DoChartGUI(int currentFrame, bool active) { if (Event.current.type == EventType.Repaint) { string[] labels = new string[m_Series.Length]; for (int s = 0; s < m_Series.Length; s++) { string name = m_Data.hasOverlay ? "Selected" + m_Series[s].name : m_Series[s].name; int identifier = ProfilerDriver.GetStatisticsIdentifierForArea(m_Area, name); labels[s] = ProfilerDriver.GetFormattedStatisticsValue(currentFrame, identifier); } m_Data.AssignSelectedLabels(labels); } if (legendHeaderLabel == null) { string iconName = string.Format("Profiler.{0}", System.Enum.GetName(typeof(ProfilerArea), m_Area)); legendHeaderLabel = EditorGUIUtility.TextContentWithIcon(GetLocalizedChartName(), iconName); } return(DoGUI(m_Type, currentFrame, m_Data, active)); }