Skip to content

Draggable Nodes

Valk edited this page May 15, 2025 · 12 revisions

This page is a WIP.

  • Add DraggableComponent node as child to the Control, Sprite2D or AnimatedSprite2D you want to drag.
  • Add DroppableComponent node as child to the Control or Node2D 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 and dragManager.CanDrop
Clone this wiki locally