Version: 2017.1
public static void DrawCurveSwatch (Rect position, AnimationCurve curve, SerializedProperty property, Color color, Color bgColor);
public static void DrawCurveSwatch (Rect position, AnimationCurve curve, SerializedProperty property, Color color, Color bgColor, Rect curveRanges);

参数

position 要在其中绘制颜色样本的矩形。
curve 要绘制的曲线。
property 要绘制为 SerializedProperty 的曲线。
color 要用于绘制曲线的颜色。
bgColor 要用于绘制背景的颜色。
curveRanges 可选参数,用于指定应包含在样本中的曲线范围。

描述

绘制曲线样本。

传入将使用曲线参数或属性参数绘制的曲线。