EditorGUIUtility.DrawCurveSwatch 绘制曲线样本
static function DrawCurveSwatch (position : Rect, curve : AnimationCurve, property : SerializedProperty, color : Color, bgColor : Color) : void
static function DrawCurveSwatch (position : Rect, curve : AnimationCurve, property : SerializedProperty, color : Color, bgColor : Color, curveRanges : Rect) : void
Parameters参数
- positionThe rectangle to draw the color swatch within.
绘制曲线样本的矩形 - curveThe curve to draw. // 绘制的曲线
-
propertyThe curve to draw as a SerializedProperty.
曲线绘制的属性 -
colorThe color to draw the curve with. // 绘制曲线的颜色
-
bgColorThe color to draw the background with. // 绘制背景的颜色
-
curveRangesOptional parameter to specify the range of the curve which should be included in swatch.
可选参数,指定曲线的范围,应包含样本。
Description描述
Draw a curve swatch.
绘制一个曲线样本。
Pass in the curve to draw either with the curve parameter or with the property parameter.
传递曲线来绘制,要么带有曲线参数或属性参数。
最后修改:2011年7月15日 Friday 12:52