Back to Browse

Swapping inventory items - Inventory System in Unity tutorial P16

10.2K views
Feb 11, 2022
16:52

In this video we will code the logic behind swapping items when we drag and drop inventory ui item onto another in our inventory UI page. 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:45 Modifying Inventory Controller script 01:41 Adding Test items 03:27 Dragging item logic 04:46 Swapping items logic 06:50 Inventory informing about change 10:33 Reset All Items UI code 11:44 Testing logic 12:36 Fixing Add Item bug 14:50 Fixing Item Selection

Download

1 formats

Video Formats

360pmp426.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Swapping inventory items - Inventory System in Unity tutorial P16 | NatokHD