C# Class UIDragDropItem, LoopScorllViewForNGUI

Inheritance: MonoBehaviour
Afficher le fichier Open project: tinyantstudio/LoopScorllViewForNGUI Class Usage Examples

Méthodes publiques

Свойство Type Description
cloneOnDrag bool
restriction Restriction

Protected Properties

Свойство Type Description
mButton UIButton,
mCollider Collider
mDragScrollView UIDragScrollView,
mGrid UIGrid,
mParent Transform
mPressTime float
mRoot UIRoot,
mTable UITable,
mTouchID int
mTrans Transform

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

Perform the dragging.
public OnDrag ( Vector2 delta ) : void
delta Vector2
Résultat void

OnDragDropMove() protected méthode

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

OnDragDropRelease() protected méthode

Drop the item onto the specified object.
protected OnDragDropRelease ( GameObject surface ) : void
surface GameObject
Résultat void

OnDragDropStart() protected méthode

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

OnDragEnd() public méthode

Notification sent when the drag event has ended.
public OnDragEnd ( ) : void
Résultat void

OnDragStart() public méthode

Start the dragging operation.
public OnDragStart ( ) : void
Résultat void

OnPress() public méthode

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

Start() protected méthode

Cache the transform.
protected Start ( ) : void
Résultat void

Property Details

cloneOnDrag public_oe property

Whether a copy of the item will be dragged instead of the item itself.
public bool cloneOnDrag
Résultat bool

mButton protected_oe property

protected UIButton, mButton
Résultat UIButton,

mCollider protected_oe property

protected Collider mCollider
Résultat Collider

mDragScrollView protected_oe property

protected UIDragScrollView, mDragScrollView
Résultat UIDragScrollView,

mGrid protected_oe property

protected UIGrid, mGrid
Résultat UIGrid,

mParent protected_oe property

protected Transform mParent
Résultat Transform

mPressTime protected_oe property

protected float mPressTime
Résultat float

mRoot protected_oe property

protected UIRoot, mRoot
Résultat UIRoot,

mTable protected_oe property

protected UITable, mTable
Résultat UITable,

mTouchID protected_oe property

protected int mTouchID
Résultat int

mTrans protected_oe property

protected Transform mTrans
Résultat Transform

restriction public_oe property

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