C# 클래스 FairyGUI.DragDropManager

Helper for drag and drop. 这是一个提供特殊拖放功能的功能类。与GObject.draggable不同,拖动开始后,他使用一个替代的图标作为拖动对象。 当玩家释放鼠标/手指,目标组件会发出一个onDrop事件。
파일 보기 프로젝트 열기: fairygui/FairyGUI-unity 1 사용 예제들

공개 메소드들

메소드 설명
Cancel ( ) : void

Cancel dragging. 取消拖动。

DragDropManager ( ) : System
StartDrag ( GObject source, string icon, object sourceData, int touchPointID = -1 ) : void

Start dragging. 开始拖动。

비공개 메소드들

메소드 설명
__dragEnd ( EventContext evt ) : void

메소드 상세

Cancel() 공개 메소드

Cancel dragging. 取消拖动。
public Cancel ( ) : void
리턴 void

DragDropManager() 공개 메소드

public DragDropManager ( ) : System
리턴 System

StartDrag() 공개 메소드

Start dragging. 开始拖动。
public StartDrag ( GObject source, string icon, object sourceData, int touchPointID = -1 ) : void
source GObject Source object. This is the object which initiated the dragging.
icon string Icon to be used as the dragging sign.
sourceData object Custom data. You can get it in the onDrop event data.
touchPointID int Copy the touchId from InputEvent to here, if has one.
리턴 void