Click or drag to resize

DragDropManagerStartDrag Method

Start dragging. 开始拖动。

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void StartDrag(
	GObject source,
	string icon,
	Object sourceData,
	int touchPointID = -1
)

Parameters

source
Type: FairyGUIGObject
Source object. This is the object which initiated the dragging.
icon
Type: SystemString
Icon to be used as the dragging sign.
sourceData
Type: SystemObject
Custom data. You can get it in the onDrop event data.
touchPointID (Optional)
Type: SystemInt32
Copy the touchId from InputEvent to here, if has one.
See Also