GUI
- backgroundColor
- BeginGroup
- BeginScrollView
- Box
- BringWindowToBack
- BringWindowToFront
- Button
- changed
- color
- contentColor
- depth
- DragWindow
- DrawTexture
- enabled
- EndGroup
- EndScrollView
- FocusControl
- FocusWindow
- GetNameOfFocusedControl
- GUI
- HorizontalScrollbar
- HorizontalSlider
- Label
- matrix
- PasswordField
- RepeatButton
- ScrollTo
- SelectionGrid
- SetNextControlName
- skin
- TextArea
- TextField
- Toggle
- Toolbar
- tooltip
- UnfocusWindow
- VerticalScrollbar
- VerticalSlider
- Window
GUI 界面
The GUI class is the interface for Unity's GUI with manual positioning.
GUI类是Unity GUI 手工定位的接口。
Constructors构造器
-
构造GUI
Class Variables类变量
-
The global skin to use
全局皮肤使用。 -
Global tinting color for the GUI.
GUI全局颜色 -
Global tinting color for all background elements rendered by the GUI.
全局由GUI渲染的所有背景元素颜色 -
Tinting color for all text rendered by the GUI.
由GUI渲染的所有文本颜色 -
Returns true if any controls changed the value of the input data.
返回true,如果任何控件改变了输入数据的值。 -
Is the GUI enabled?
GUI启用了? -
The GUI transform matrix.
GUI变换矩阵。 -
The tooltip of the control the mouse is currently over, or which has keyboard focus. (Read Only).
控制鼠标当前通过对象的提升信息,或具有键盘焦点。 -
The sorting depth of the currently executing GUI behaviour.
当前执行的GUI行为深度排序。
Class Functions类函数
-
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.
从所有窗口移除焦点。
最后修改:2011年6月15日 Wednesday 10:34