Godot calls this method to pass you the data from a control's getDragData result. Godot first calls canDropData to test if data is allowed to drop at position where position is local to this control.
func can_drop_data(position, data): return typeof(data) == TYPE_DICTIONARY and data.has("color")
func drop_data(position, data): color = data"color"
See Implementation
Godot calls this method to pass you the data from a control's getDragData result. Godot first calls canDropData to test if data is allowed to drop at position where position is local to this control.