Click or drag to resize

ControlForceDrag Method

Forces drag and bypasses GetDragData(Vector2) and SetDragPreview(Control) by passing data and preview. Drag will start even if the mouse is neither over nor pressed on this control.

The methods CanDropData(Vector2, Object) and DropData(Vector2, Object) must be implemented on controls that want to receive drop data.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void ForceDrag(
	Object data,
	Control preview
)

Parameters

data
Type: SystemObject

[Missing <param name="data"/> documentation for "M:Godot.Control.ForceDrag(System.Object,Godot.Control)"]

preview
Type: GodotControl

[Missing <param name="preview"/> documentation for "M:Godot.Control.ForceDrag(System.Object,Godot.Control)"]

See Also