Click or drag to resize

DragDropManager Class

Helper for drag and drop. 这是一个提供特殊拖放功能的功能类。与GObject.draggable不同,拖动开始后,他使用一个替代的图标作为拖动对象。 当玩家释放鼠标/手指,目标组件会发出一个onDrop事件。
Inheritance Hierarchy
SystemObject
  FairyGUIDragDropManager

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class DragDropManager

The DragDropManager type exposes the following members.

Constructors
  NameDescription
Public methodDragDropManager
Initializes a new instance of the DragDropManager class
Top
Properties
  NameDescription
Public propertydragAgent
Loader object for real dragging. 用于实际拖动的Loader对象。你可以根据实际情况设置loader的大小,对齐等。
Public propertydragging
Is dragging? 返回当前是否正在拖动。
Public propertyStatic memberinst
Top
Methods
  NameDescription
Public methodCancel
Cancel dragging. 取消拖动。
Public methodStartDrag
Start dragging. 开始拖动。
Top
See Also