ControlCanDropData Method |
Godot calls this method to test if data from a control's GetDragData(Vector2) can be dropped at position. position is local to this control.
This method should only be used to test the data. Process the data in DropData(Vector2, Object).
func can_drop_data(position, data): # Check position if it is relevant to you # Otherwise, just check data return typeof(data) == TYPE_DICTIONARY and data.has("expected")
Namespace: Godot
public virtual bool CanDropData( Vector2 position, Object data )
[Missing <param name="position"/> documentation for "M:Godot.Control.CanDropData(Godot.Vector2,System.Object)"]
[Missing <param name="data"/> documentation for "M:Godot.Control.CanDropData(Godot.Vector2,System.Object)"]
[Missing <returns> documentation for "M:Godot.Control.CanDropData(Godot.Vector2,System.Object)"]