private static int IntFieldWithUndo(this Object obj, int value, GUIContent label)
        {
            EditorGUI.BeginChangeCheck();

            var newValue = ScriptableEventGUI.IntField(value, label);

            if (EditorGUI.EndChangeCheck())
            {
                RecordUndo(obj, label);
            }

            return(newValue);
        }
 protected override int DrawArgField(int value)
 {
     return(ScriptableEventGUI.IntField(value));
 }