In this video we are going to test our Drag and Drop functionality to see if we can swap our mock items through the UI script. We will also fix an issue with scroll view (not working) when the cursor is over an inventory item.
Link to the tutorial https://youtu.be/xGNBjHG2Oss
Learn to make 2d games in Unity:
https://courses.sunnyvalleystudio.com/
GitHub files: https://github.com/SunnyValleyStudio/Unity-Inventory-system-using-SO-and-MVC
Patreon end project files:
https://www.patreon.com/posts/62105689
Assets used:
https://github.com/sparklinlabs/superpowers-asset-packs
https://paperhatlizard.itch.io/cryos-mini-gui
Starter Project link: https://drive.google.com/file/d/10j_AmqBkjpO9uGjuUXEAgqJfGoOetAAW/view?usp=sharing
Join the discord:
https://discord.gg/RQEtYHz
You can support me through Patreon:
https://www.patreon.com/sunnyvalleystudio
00:00 Intro
00:22 UI Raycast Target
00:40 Mocking second item
02:17 Temporary swap items code
03:20 Find and replace in Visual Studio
07:50 Testing Swap items logic
09:05 Problem with scroll view
10:20 Using IDragHandler and IPointerClickHandler
Download
0 formats
No download links available.
Testing Swap Item logic - Inventory System in Unity tutorial P10 | NatokHD