class in UnityEngine
The GUI class is the interface for Unity's GUI with manual positioning.
界面类是Unity手工定制的GUI的接口。
backgroundColor | Global tinting color for all background elements rendered by the GUI. 全局染色由GUI渲染的所有背景元素. |
changed | Returns true if any controls changed the value of the input data. 如果任何控制按钮改变输入数据的值那么返回true。 |
color | Global tinting color for the GUI. 全局GUI染色,将影响背景和文本颜色。 |
contentColor | Tinting color for all text rendered by the GUI. 全局染色由GUI渲染的所有文本,得到乘以颜色。 |
depth | The sorting depth of the currently executing GUI behaviour. 当前执行的GUI行为的深度排序。 |
enabled | Is the GUI enabled? 判断GUI是否启用了。 |
matrix | The GUI transform matrix. GUI变换矩阵。 |
skin | The global skin to use. 全局皮肤使用。 |
tooltip | The tooltip of the control the mouse is currently over, or which has keyboard focus. (Read Only). 控制鼠标当前通过对象的提升信息,或具有键盘焦点。 |
BeginGroup | Begin a group. Must be matched with a call to EndGroup. 开始组,必须配套以EndGroup结束关闭容器。 |
BeginScrollView | Begin a scrolling view inside your GUI. 在你的GUI里,开始一个滚动视图, 注意BeginScrollView和EndScrollView它们是成对出现的。 |
Box | Create a Box on the GUI Layer. A Box can contain text, an image, or a combination of these along with an optional tooltip, through using a GUIContent parameter. You may also use a GUIStyle to adjust the layout of items in a box, text colour and other properties. 在界面布局创建盒子。盒子包含文本,图像或者带有工具提示的这些的组合,通过使用GUIContent参数。你也可以使用GUIStyle去调整盒子中所有的物体的布局,文本颜色和其他属性。 |
BringWindowToBack | Bring a specific window to back of the floating windows. 使一个特定的窗口到浮动窗口的后面。 |
BringWindowToFront | Bring a specific window to front of the floating windows. 使一个特定的窗口到浮动窗口的前面。 |
Button | Make a single press button. The user clicks them and something happens immediately. 创建一个单次按下按钮。用户点击按钮事件立即触发。 |
DragWindow | Make a window draggable. 创建一个可拖动窗口。 |
DrawTexture | Draw a texture within a rectangle. 在矩形内绘制一个纹理。 |
DrawTextureWithTexCoords | Draw a texture within a rectangle with the given texture coordinates. Use this function for clipping or tiling the image within the given rectangle. 在给定的纹理坐标矩形范围内绘制纹理。使用该函数为了裁剪或者铺盖图像到指定的矩形内部。 |
EndGroup | End a group. 结束组,和开数组BeginGroup成对使用。 |
EndScrollView | Ends a scrollview started with a call to BeginScrollView. 结束被开始的滚动视图,注意BeginScrollView和EndScrollView它们是成对出现的。 |
FocusControl | Move keyboard focus to a named control. 移动键盘焦点到被命名的控件。 |
FocusWindow | Make a window become the active window. 使一个窗口成为活动窗口。 |
GetNameOfFocusedControl | Get the name of named control that has focus. 获取有焦点被命名控件的名字。 |
HorizontalScrollbar | Make a horizontal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead. 创建水平滚动条。滚动条是能通过滚动来浏览文档,大多数情况下,你可以使用scrollView代替。 |
HorizontalSlider | A horizontal slider the user can drag to change a value between a min and a max. 水平滑动条,用户能拖动改变最小和最大值之间。 |
Label | Make a text or texture label on screen. 在屏幕上创建一个文本或者纹理标签。 |
ModalWindow | Show a Modal Window. 显示模式窗口。 |
PasswordField | Make a text field where the user can enter a password. 创建文本字段,用户可以编辑密码。 |
RepeatButton | Make a button that is active as long as the user holds it down. 创建一个按钮,只要用户按着不放,将一直被激活。 |
ScrollTo | Scrolls all enclosing scrollviews so they try to make position visible. 滚动scrollviews到position指定的位置,通俗来说就是把内容滚动到指定的坐标。 |
SelectionGrid | Make a grid of buttons. 创建一个网格按钮。 |
SetNextControlName | Set the name of the next control. 设置下一个控件的名字。 |
TextArea | Make a Multi-line text area where the user can edit a string. 创建多行文本区域,用户可以编辑字符串。 |
TextField | Make a single-line text field where the user can edit a string. 创建单行文本字段,用户可以编辑字符串。 |
Toggle | Make an on/off toggle button. 创建on/off开关按钮,也就是类似通常说的单选按钮。 |
Toolbar | Make a toolbar. 创建工具栏。 |
UnfocusWindow | Remove focus from all windows. 从所有窗口移除焦点。就是说是所有窗口处于不激活状态。 |
VerticalScrollbar | Make a vertical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead. 创建垂直滚动条。滚动条是能通过滚动来浏览文档,大多数情况下,你可以使用scrollView代替。 |
VerticalSlider | A vertical slider the user can drag to change a value between a min and a max. 垂直滑条指用户可以在最小和最大值之间拖动或者改变。 |
Window | Make a popup window. 创建一个弹出窗口。 |
WindowFunction | Callback to draw GUI within a window (used with GUI.Window). 在窗口内回调绘制GUI(和GUI.Window一起使用)。 |