private void DrawInternal(Rect rect, AnimationCurve animCurve) { if (animCurve != null) { EditorGUIUtility.DrawCurveSwatch(rect, animCurve, null, new Color(0.8f, 0.8f, 0.8f, 1f), EditorGUI.kCurveBGColor); } }