In this tutorial, I will show you how to create a drag and drop system in Unity UI using the core built-in UI components. You can use this drag and drop system to build an inventory.
If you're looking to create a drag and drop system in Unity UI, or develop an inventory UI, then this tutorial is for you! We'll take you through the process step by step, so that you can create a great system quickly and easily!
If you get stuck, you can ask for help on our discord server! Join through this link:
/ discord
ItemSlot.cs:
https://pastebin.com/A5fy87VX
DraggableItem.cs:
https://pastebin.com/m3m3KYs1
Free Drag and Drop UI Starter Pack:
https://opengameart.org/content/inven...
2D Platformer Art Pack + MORE FREE STUFF:
https://bit.ly/free-game-dev-assets
I had to create custom sprites for the wood, planks etc because the ones in the video are taken from the game. I left the panel and slot sprites in there as those were made by me.