Пример #1
0
 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();
 }
Пример #2
0
        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);
        }