C# 클래스 UIDragDropItem, LoopScorllViewForNGUI

상속: MonoBehaviour
파일 보기 프로젝트 열기: tinyantstudio/LoopScorllViewForNGUI 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
cloneOnDrag bool
restriction Restriction

보호된 프로퍼티들

프로퍼티 타입 설명
mButton UIButton,
mCollider Collider
mDragScrollView UIDragScrollView,
mGrid UIGrid,
mParent Transform
mPressTime float
mRoot UIRoot,
mTable UITable,
mTouchID int
mTrans Transform

공개 메소드들

메소드 설명
OnDrag ( Vector2 delta ) : void

Perform the dragging.

OnDragEnd ( ) : void

Notification sent when the drag event has ended.

OnDragStart ( ) : void

Start the dragging operation.

OnPress ( bool isPressed ) : void

Record the time the item was pressed on.

보호된 메소드들

메소드 설명
OnDragDropMove ( Vector3 delta ) : void

Adjust the dragged object's position.

OnDragDropRelease ( GameObject surface ) : void

Drop the item onto the specified object.

OnDragDropStart ( ) : void

Perform any logic related to starting the drag & drop operation.

Start ( ) : void

Cache the transform.

메소드 상세

OnDrag() 공개 메소드

Perform the dragging.
public OnDrag ( Vector2 delta ) : void
delta Vector2
리턴 void

OnDragDropMove() 보호된 메소드

Adjust the dragged object's position.
protected OnDragDropMove ( Vector3 delta ) : void
delta Vector3
리턴 void

OnDragDropRelease() 보호된 메소드

Drop the item onto the specified object.
protected OnDragDropRelease ( GameObject surface ) : void
surface GameObject
리턴 void

OnDragDropStart() 보호된 메소드

Perform any logic related to starting the drag & drop operation.
protected OnDragDropStart ( ) : void
리턴 void

OnDragEnd() 공개 메소드

Notification sent when the drag event has ended.
public OnDragEnd ( ) : void
리턴 void

OnDragStart() 공개 메소드

Start the dragging operation.
public OnDragStart ( ) : void
리턴 void

OnPress() 공개 메소드

Record the time the item was pressed on.
public OnPress ( bool isPressed ) : void
isPressed bool
리턴 void

Start() 보호된 메소드

Cache the transform.
protected Start ( ) : void
리턴 void

프로퍼티 상세

cloneOnDrag 공개적으로 프로퍼티

Whether a copy of the item will be dragged instead of the item itself.
public bool cloneOnDrag
리턴 bool

mButton 보호되어 있는 프로퍼티

protected UIButton, mButton
리턴 UIButton,

mCollider 보호되어 있는 프로퍼티

protected Collider mCollider
리턴 Collider

mDragScrollView 보호되어 있는 프로퍼티

protected UIDragScrollView, mDragScrollView
리턴 UIDragScrollView,

mGrid 보호되어 있는 프로퍼티

protected UIGrid, mGrid
리턴 UIGrid,

mParent 보호되어 있는 프로퍼티

protected Transform mParent
리턴 Transform

mPressTime 보호되어 있는 프로퍼티

protected float mPressTime
리턴 float

mRoot 보호되어 있는 프로퍼티

protected UIRoot, mRoot
리턴 UIRoot,

mTable 보호되어 있는 프로퍼티

protected UITable, mTable
리턴 UITable,

mTouchID 보호되어 있는 프로퍼티

protected int mTouchID
리턴 int

mTrans 보호되어 있는 프로퍼티

protected Transform mTrans
리턴 Transform

restriction 공개적으로 프로퍼티

What kind of restriction is applied to the drag & drop logic before dragging is made possible.
public Restriction restriction
리턴 Restriction