public static void OnGUI(Rect position, SerializedProperty property, GUIContent label)
 {
     label = EditorGUI.BeginProperty(position, label, property);
     EditorGUI.CurveField(EditorGUI.PrefixLabel(SubtractPopupWidth(position), label), property, Color.green, default(Rect));
     AnimationCurvePopupMenu.Show(GetPopupRect(position), null, property);
     EditorGUI.EndProperty();
 }
        public static AnimationCurve CurveField(Rect position, GUIContent label, AnimationCurve value)
        {
            AnimationCurve animationCurve = EditorGUI.CurveField(SubtractPopupWidth(position), label, value);

            AnimationCurvePopupMenu.Show(GetPopupRect(position), animationCurve, null);
            return(animationCurve);
        }