Drag and Drop Send Data Between UI Controls - Godot 4 Gdscript Tutorial

9 months ago
12

Quick tutorial on how to use the drag and drop functions of control nodes in Godot. These virtual functions exist on all control nodes but must be implemented in a custom script attached to the nodes for the UI controls to support dragging and dropping. We can send data through this process between the sending node and the receiving control node.

World Time Plugin ➣ https://linktr.ee/worldtimeplugin
Item Drops Plugin ➣ https://linktr.ee/itemdrops
Grid Building Plugin ➣ https://linktr.ee/gridbuilder

➣ Downloadable Assets, Video Courses, and Other Places to Follow Me
https://linktr.ee/ChrisTutorials
https://ko-fi.com/christutorials
https://patreon.com/christutorials
https://chris-tutorials.itch.io/

➣ Support Channel with Crypto Donations
https://pastebin.com/WAnBPcXs

00:00 - What to Expect
00:35 - Send Drag Data
02:46 - Custom Send ItemsTransferData
04:52 - Set Drag Preview
07:54 - Receive Drag Data (Shop UI)
11:06 - Drop Data
14:43 - Wrapup

Loading comments...