Back to Browse

Dragging UI Item - Inventory System in Unity P9

16.9K views
Feb 8, 2022
12:25

In this video we will create an additional UI element that will represent the dragged item from our inventory. We will make it follow the mouse pointer and we will contact it to the existing UI scripts so that we enable it when the users starts dragging 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 01:43 Creating Draggable UI Element 05:00 UI Follow Mouse Script 06:46 RectTransformUtility 09:54 Integrating MouseFollower with UI script 11:28 Testing the Draggable item

Download

0 formats

No download links available.

Dragging UI Item - Inventory System in Unity P9 | NatokHD