C# Class UnityContrib.UnityEngine.GUIEx

Provides helper methods for working with the T:UnityEngine.GUI class.
ファイルを表示 Open project: UnityContrib/framework

Public Methods

Method Description
ScrollView ( Rect rect, Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, System.Action action ) : Vector2

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.

Method Details

ScrollView() public static method

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 rect, Vector2 scrollPosition, Rect viewRect, GUIStyle horizontalScrollbar, GUIStyle verticalScrollbar, System.Action action ) : Vector2
rect UnityEngine.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 UnityEngine.Rect /// The rectangle used inside the scrollview. ///
horizontalScrollbar UnityEngine.GUIStyle /// GUIStyle to use for the horizontal scrollbar. If left out, the horizontalScrollbar style from the current GUISkin is used. ///
verticalScrollbar UnityEngine.GUIStyle /// 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