C# Класс UIDragDropItem, LoopScorllViewForNGUI

Наследование: MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
cloneOnDrag bool
restriction Restriction

Защищенные свойства (Protected)

Свойство Тип Описание
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