|
| override void | Upgrade () |
| | Upgrade from legacy functionality. More...
|
| |
| override void | OnStart () |
| | Make the scroll bar's foreground react to press events. More...
|
| |
| override float | LocalToValue (Vector2 localPos) |
| | Move the scroll bar to be centered on the specified position. More...
|
| |
| override void | Upgrade () |
| | Upgrade from legacy functionality. More...
|
| |
| override void | OnStart () |
| | Register an event listener. More...
|
| |
| void | OnPressBackground (GameObject go, bool isPressed) |
| | Position the scroll bar to be under the current touch. More...
|
| |
| void | OnDragBackground (GameObject go, Vector2 delta) |
| | Position the scroll bar to be under the current touch. More...
|
| |
| void | OnPressForeground (GameObject go, bool isPressed) |
| | Save the position of the foreground on press. More...
|
| |
| void | OnDragForeground (GameObject go, Vector2 delta) |
| | Drag the scroll bar in the specified direction. More...
|
| |
| void | OnKey (KeyCode key) |
| | Watch for key events and adjust the value accordingly. More...
|
| |
| void | Start () |
| | Register the event listeners. More...
|
| |
| void | Update () |
| | Update the value of the scroll bar if necessary. More...
|
| |
| void | OnValidate () |
| | Invalidate the scroll bar. More...
|
| |
| float | ScreenToValue (Vector2 screenPos) |
| | Drag the scroll bar by the specified on-screen amount. More...
|
| |
| void | SetThumbPosition (Vector3 worldPos) |
| | Set the position of the thumb to the specified world coordinates. More...
|
| |
|
| float | scrollValue [get, set] |
| |
| float | barSize [get, set] |
| | The size of the foreground bar in percent (0-1 range). More...
|
| |
| float | sliderValue [get, set] |
| |
| bool | inverted [get, set] |
| |
| Transform | cachedTransform [get] |
| | Cached for speed. More...
|
| |
| Camera | cachedCamera [get] |
| | Camera used to draw the scroll bar. More...
|
| |
| UIWidget | foregroundWidget [get, set] |
| | Widget used for the foreground. More...
|
| |
| UIWidget | backgroundWidget [get, set] |
| | Widget used for the background. More...
|
| |
| FillDirection | fillDirection [get, set] |
| | The scroll bar's direction. More...
|
| |
| float | value [get, set] |
| | Modifiable value for the scroll bar, 0-1 range. More...
|
| |
| float | alpha [get, set] |
| | Allows to easily change the scroll bar's alpha, affecting both the foreground and the background sprite at once. More...
|
| |
| bool | isHorizontal [get] |
| | Whether the progress bar is horizontal in nature. Convenience function. More...
|
| |
| bool | isInverted [get] |
| | Whether the progress bar is inverted in its behaviour. Convenience function. More...
|
| |
Scroll bar functionality.