/// <summary> /// Draws button for adding new input. /// </summary> /// <param name="position">Absolute position of button in GUI.</param> protected virtual void DrawAddNewInputButton(Rect position) { EditorGUI.BeginDisabledGroup(!this.CanAddNewInput); var addButtonNormal = ReorderableListStyles.Skin.Icon_Add_Normal; var addButtonActive = ReorderableListStyles.Skin.Icon_Add_Active; if (ExtraEditorGUI.IconButton(position, addButtonNormal, addButtonActive, AddButtonStyle)) { this.OnAddNewInputButtonClick(); } EditorGUI.EndDisabledGroup(); }