void DrawEvent(TimelineEvent eventData, Rect eventRect, float startTime, float length, Color color) { Color beforeColor = GUI.color; GUI.color = color; GUI.Box(eventRect, eventData.name + ": \n(" + eventData.GetType().Name.Substring(eventData.GetType().Name.IndexOf(mActiveTimeline.getRootEvent()) + mActiveTimeline.getRootEvent().Length) + ")\n" + startTime + "\n" + length); GUI.color = beforeColor; }