9using System.Collections.Generic;
30 bounds =
new Rect(0, 0, width, height);
34 public void DrawProperty(Rect rect, SerializedProperty property, GUIContent label) {
35 EditorGUI.CurveField(rect, property,
Color.green,
bounds);
38 public override IEnumerable<SerializedPropertyType> SupportedTypes {
40 yield
return SerializedPropertyType.AnimationCurve;
You can use this attribute to mark that an AnimationCurve can only have values that fall within speci...
CurveBoundsAttribute(Rect bounds)
CurveBoundsAttribute(float width, float height)
You can use this attribute to mark that an AnimationCurve can only have values that range from 0 to 1...