/// <summary> /// Allows us to add to a list /// </summary> /// <param name="rList"></param> private void OnAttributeItemListItemAdd(ReorderableList rList) { mTarget.AddAttribute("", EnumAttributeTypes.Types[mAttributeItemTypeIndex]); mAttributeItemList.index = mTarget.Items.Count - 1; OnAttributeItemListItemSelect(rList); mIsDirty = true; }
/// <summary> /// Allows us to add to a list /// </summary> /// <param name="rList"></param> private void OnItemListItemAdd(ReorderableList rList) { if (mAttributeValue.Length == 0) { return; } if (mTarget.AttributeExists(mAttributeValue)) { return; } mTarget.AddAttribute(mAttributeValue); mItemList.index = mTarget.Items.Count - 1; OnItemListItemSelect(rList); mIsDirty = true; }