C# Class UIDragDropItem, LoopScorllViewForNGUI

Inheritance: MonoBehaviour
显示文件 Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Public Properties

Property Type Description
cloneOnDrag bool
restriction Restriction

Protected Properties

Property Type Description
mButton UIButton,
mCollider Collider
mDragScrollView UIDragScrollView,
mGrid UIGrid,
mParent Transform
mPressTime float
mRoot UIRoot,
mTable UITable,
mTouchID int
mTrans Transform

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Method Details

OnDrag() public method

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

OnDragDropMove() protected method

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

OnDragDropRelease() protected method

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

OnDragDropStart() protected method

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

OnDragEnd() public method

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

OnDragStart() public method

Start the dragging operation.
public OnDragStart ( ) : void
return void

OnPress() public method

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

Start() protected method

Cache the transform.
protected Start ( ) : void
return void

Property Details

cloneOnDrag public_oe property

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

mButton protected_oe property

protected UIButton, mButton
return UIButton,

mCollider protected_oe property

protected Collider mCollider
return Collider

mDragScrollView protected_oe property

protected UIDragScrollView, mDragScrollView
return UIDragScrollView,

mGrid protected_oe property

protected UIGrid, mGrid
return UIGrid,

mParent protected_oe property

protected Transform mParent
return Transform

mPressTime protected_oe property

protected float mPressTime
return float

mRoot protected_oe property

protected UIRoot, mRoot
return UIRoot,

mTable protected_oe property

protected UITable, mTable
return UITable,

mTouchID protected_oe property

protected int mTouchID
return int

mTrans protected_oe property

protected Transform mTrans
return Transform

restriction public_oe property

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