example.md 379 B


tags: gui title: Drag brief: This example shows how to drag a GUI box node. author: Defold Foundation

scripts: drag.gui_script

This example shows how to drag a GUI box node. The example has a list of box nodes that can be dragged. It uses gui.pick_node() to detect if a click is within the bounds of a box and then moves the box as long as the mouse button is pressed.