Step 01 : Add your new Equipment slot name in the EEquipmentSlotName
Step 02 : Create the slot in the Equipment panel
Step 03 : Add the new slot to the AllSlots array.
Step 04 : Add the slot to the slot mapping by using the MapSlot() function. (Inside CreateSlot())
Step 05 : In the EquipedItemsComponent, In MapNamesAndSlots(), don't forget to add your new slot to the mapping.
Step 06 : Open the EquipedItemsComponent and click on "ClassDefaults" to init it's default params.
We need to update the InitialInventorySize so that it can contains all the slots.
We also need to add new datas to the SlotsColdDatas array. Thos datas will be associated with our new slot.
Step 07 : Open the TopDownRPGPlayerController and make sure that the setup of the EquipedItemsComponent are also correctly setup here.
Note :
You may want to add multiple slots which have the SlotTypes. To do that you need to modify the EquipedItemsComponent::MapNamesAndIdx() function like that :
Make sure that the slot types you send to this function are the same as the ones you have defined in the SlotColdDatas array !