The GUI class is the interface for Unity's GUI with manual positioning.
-
Make a text or texture label on screen.
在屏幕上创建一个文本或纹理标签
-
Draw a texture within a rectangle.
在一个矩形中绘制纹理
-
Make a graphical box. 创建一个图形盒
-
Make a single press button. The user clicks them and something happens immediately.
创建一个按钮,用户点击的时候触发一些事件。
-
Make a button that is active as long as the user holds it down.
创建一个按钮,只要用户按着不放,将一直被激活
-
Make a single-line text field where the user can edit a string.
创建单行文本字段,用户可以编辑字符串
-
Make a text field where the user can enter a password.
创建密码文本字段,用户可以输入密码
-
Make a Multi-line text area where the user can edit a string.
创建多行文本区域,用户可以编辑字符串
-
Set the name of the next control.
设置下一个控件的名字
-
Get the name of named control that has focus.
获取有焦点被命名控件的名字
-
Move keyboard focus to a named control.
移动键盘焦点到被命名的控件。
-
Make an on/off toggle button.
创建on/off开关按钮。
-
Make a toolbar //创建工具栏
-
Make a grid of buttons.//创建按钮网格
-
A horizontal slider the user can drag to change a value between a min and a max.
创建水平滑动条,用户可以拖动滑块改变最小最大值。
-
A vertical slider the user can drag to change a value between a min and a max.
创建垂直滑动条,用户可以拖动滑块改变最小最大值。
-
Make a horizontal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
创建水平滚动条,滚动条你可以用来滚动文档;大多数情况下,你会使用scrollViews代替。
-
Make a vertiical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.
创建垂直滚动条,滚动条你可以用来滚动文档;大多数情况下,你会使用scrollViews代替。
-
Begin a group. Must be matched with a call to EndGroup.
开始组,后面必须有一个EndGroup结束组相匹配
-
End a group.
结束组,和上面的BeginGroup开数组一对,相呼应。
-
Begin a scrolling view inside your GUI.
在你的GUI里开始滚动视图。
-
Ends a scrollview started with a call to BeginScrollView.
结束由BeginScrollView开始滚动的视图
-
Scrolls all enclosing scrollviews so they try to make position visible.
滚动scrollviews到position指定的位置。
-
Make a popup window.//创建一个弹出窗口。
-
Make a window draggable.//
创建一个可拖拽窗口。
-
Bring a specific window to front of the floating windows.
使特定的窗口到浮动窗口的前面。
-
Bring a specific window to back of the floating windows.
是特定窗口到浮动窗口的后面。
-
Make a window become the active window.
使一个窗口成为活动窗口。
-
Remove focus from all windows.
从所有窗口移除焦点。