private void RenderInRangeOverlay(Rect rect) { Color color = AnimEditor.inRangeColor; if (this.controlInterface.recording) { color *= AnimationMode.recordedPropertyColor; } else if (this.controlInterface.previewing) { color *= AnimationMode.animatedPropertyColor; } else { color = Color.clear; } Vector2 timeRange = this.m_State.timeRange; AnimationWindowUtility.DrawInRangeOverlay(rect, color, this.m_State.TimeToPixel(timeRange.x) + rect.xMin, this.m_State.TimeToPixel(timeRange.y) + rect.xMin); }