Свойство | Тип | Описание | |
---|---|---|---|
background | UIWidget, | ||
combineSound | |||
errorSound | |||
grabSound | |||
icon | UISprite, | ||
label | UILabel, | ||
placeSound | AudioClip |
Метод | Описание | |
---|---|---|
OnClick ( ) : void |
Allow to move objects around via drag & drop.
|
|
OnDrag ( Vector2 delta ) : void |
Start dragging the item.
|
|
OnDrop ( GameObject go ) : void |
Stop dragging the item.
|
|
OnTooltip ( bool show ) : void |
Show a tooltip for the item.
|
|
Update ( ) : void |
Keep an eye on the item and update the icon when it changes.
|
|
UpdateCursor ( ) : void |
Set the cursor to the icon of the item being dragged.
|
Метод | Описание | |
---|---|---|
Replace ( InvGameItem, item ) : InvGameItem, |
Replace the observed item with the specified value. Should return the item that was replaced.
|
|
ReplaceExisting ( InvGameItem, item ) : InvGameItem, |
protected abstract Replace ( InvGameItem, item ) : InvGameItem, | ||
item | InvGameItem, | |
Результат | InvGameItem, |
protected abstract ReplaceExisting ( InvGameItem, item ) : InvGameItem, | ||
item | InvGameItem, | |
Результат | InvGameItem, |
public AudioClip,UnityEngine combineSound | ||
Результат |
public AudioClip,UnityEngine errorSound | ||
Результат |