Name | Description |
---|---|
value | The position between min and max. |
size | How much can we see? |
topValue | The value at the top end of the scrollbar. |
bottomValue | The value at the bottom end of the scrollbar. |
style | The style to use for the scrollbar background. If left out, the horizontalScrollbar style from the current GUISkin is used. |
options |
An optional list of layout options that specify extra layouting properties. Any values passed in here will override settings defined by the style. |
float - The modified value. This can be changed by the user by dragging the scrollbar, or clicking the arrows at the end.
Make a vertical scrollbar.
Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
Vertical Scrollbar in the Game View.
var vSbarValue : float;
function OnGUI () {
vSbarValue = GUILayout.VerticalScrollbar(vSbarValue, 1.0, 10.0, 0.0);
}