blueprint
OnDrop With Logic for swapping items
- Exposure: public
- UE Version: 5.1
This blueprint is to add the option to swap the slots of items in the inventory from the tutorial Inventory the Forest:
Before copying and pasting this, you need to:
- (in UMG_Item) Create a new event dispatcher in the Widget Called Item Placed it takes 2 inputs, one of type integer & another of type ST_Inventory
- (In UMG_Inv_Grid) Open the add item to grid and bind the new event dispatcher that you just made in UMG_Item to the AddItemToGrid function.
- (in UMG_Item) You can copy and paste the blueprint above or just remake the commented part on the false part of the branch that checks if the two items are the same Data Asset.
This video is provided by youtube using cookies.
See their privacy page.
ctrl + v