// draw a line representing where in the current clip we are void DrawTrackHead(Rect clientRect) { DirectorStyles styles = TimelineWindow.styles; if (styles == null) { return; } if (!double.IsNaN(m_trackTime)) { float x = m_CurveEditor.TimeToPixel((float)m_trackTime, clientRect); x = Mathf.Clamp(x, clientRect.xMin, clientRect.xMax); var p1 = new Vector2(x, clientRect.yMin); var p2 = new Vector2(x, clientRect.yMax); Graphics.DrawLine(p1, p2, DirectorStyles.Instance.customSkin.colorPlayhead); } }