-
Notifications
You must be signed in to change notification settings - Fork 9
Draggable Nodes
Valk edited this page May 15, 2025
·
12 revisions
This page is a WIP.
- Add
DraggableComponent
node as child to theControl
,Sprite2D
orAnimatedSprite2D
you want to drag. - Add
DroppableComponent
node as child to theControl
orNode2D
you want to act as a container. -
DragManager.cs
needs to be in the scene tree somewhere. Maybe you want it as an autoload, maybe you want it only where you need it. - Define your own logic in
dragManager.CanDropInContainer
anddragManager.CanDrop