Свойство | Тип | Описание | |
---|---|---|---|
onChange | OnScrollBarChange | ||
onDragFinished | OnDragFinished |
Метод | Описание | |
---|---|---|
CenterOnPos ( Vector2 localPos ) : void |
Move the scroll bar to be centered on the specified position.
|
|
ForceUpdate ( ) : void |
Update the value of the scroll bar.
|
|
OnDragBackground ( GameObject go, Vector2 delta ) : void |
Position the scroll bar to be under the current touch.
|
|
OnDragForeground ( GameObject go, Vector2 delta ) : void |
Drag the scroll bar in the specified direction.
|
|
OnPressBackground ( GameObject go, bool isPressed ) : void |
Position the scroll bar to be under the current touch.
|
|
OnPressForeground ( GameObject go, bool isPressed ) : void |
Save the position of the foreground on press.
|
|
Reposition ( Vector2 screenPos ) : void |
Drag the scroll bar by the specified on-screen amount.
|
|
Start ( ) : void |
Register the event listeners.
|
|
Update ( ) : void |
Update the value of the scroll bar if necessary.
|
public CenterOnPos ( Vector2 localPos ) : void | ||
localPos | Vector2 | |
Результат | void |
public OnDragBackground ( GameObject go, Vector2 delta ) : void | ||
go | GameObject | |
delta | Vector2 | |
Результат | void |
public OnDragForeground ( GameObject go, Vector2 delta ) : void | ||
go | GameObject | |
delta | Vector2 | |
Результат | void |
public OnPressBackground ( GameObject go, bool isPressed ) : void | ||
go | GameObject | |
isPressed | bool | |
Результат | void |
public OnPressForeground ( GameObject go, bool isPressed ) : void | ||
go | GameObject | |
isPressed | bool | |
Результат | void |
public Reposition ( Vector2 screenPos ) : void | ||
screenPos | Vector2 | |
Результат | void |