Method | Description | |
---|---|---|
ScrollView ( |
Begin a scrolling view inside your GUI. ScrollViews let you make a smaller area on-screen look 'into' a much larger area, using scrollbars placed on the sides of the ScrollView.
|
public static ScrollView ( |
||
rect | /// Rectangle on the screen to use for the ScrollView. /// | |
scrollPosition | Vector2 | /// The pixel distance that the view is scrolled in the X and Y directions. /// |
viewRect | /// The rectangle used inside the scrollview. /// | |
horizontalScrollbar | /// GUIStyle to use for the horizontal scrollbar. If left out, the horizontalScrollbar style from the current GUISkin is used. /// | |
verticalScrollbar | /// GUIStyle to use for the vertical scrollbar. If left out, the verticalScrollbar style from the current GUISkin is used. /// | |
action | System.Action | /// The callback that renders the controls. /// |
return | Vector2 |