class in UnityEngine
The GUILayout class is the interface for Unity gui with automatic layout.
界面布局类是Unity界面自动布局的接口。
BeginArea | Begin a GUILayout block of GUI controls in a fixed screen area. 在一个固定的屏幕区域,开始一个GUI控件的GUILayout布局块;简单的说,在屏幕上开始一个固定大小的布局区域。 |
BeginHorizontal | Begin a Horizontal control group. 开始一个水平控件的组。 |
BeginScrollView | Begin an automatically laid out scrollview. 开始一个自动布局滚动视图。 |
BeginVertical | Begin a vertical control group. 开始一个垂直控件的组。 |
Box | Make an auto-layout box. 创建一个自动布局的box。 |
Button | Make a single press button. The user clicks them and something happens immediately. 创建一个单次按钮。当用户点击按钮会立即发生一些事件。 |
EndArea | Close a GUILayout block started with BeginArea. 关闭由BeginArea开始GUILayout布局块。 |
EndHorizontal | Close a group started with BeginHorizontal. 关闭由BeginHorizontal开始的一个组。 |
EndScrollView | End a scroll view begun with a call to BeginScrollView. 结束一个由BeginScrollView开始的滚动视图。 |
EndVertical | Close a group started with BeginVertical. 关闭由BeginVertical开始的一个组。 |
ExpandHeight | Option passed to a control to allow or disallow vertical expansion. 传递给控件是否允许垂直液态方向的选项。 |
ExpandWidth | Option passed to a control to allow or disallow horizontal expansion. 传递给控件是否允许垂直液态方向的选项。 |
FlexibleSpace | Insert a flexible space element. 插入一个弹性空白元素。 |
Height | Option passed to a control to give it an absolute height. 传递给控件的选项,给它一个绝对的高度。 |
HorizontalScrollbar | Make a horizontal scrollbar. 创建水平滚动栏。 |
HorizontalSlider | A horizontal slider the user can drag to change a value between a min and a max. 创建一个水平滑动条,用户可以拖动改变在最小和最大值之间的值。 |
Label | Make an auto-layout label. 创建一个自动布局的标签。 |
MaxHeight | Option passed to a control to specify a maximum height. 传递给控件指定一个最大高度的选项。 |
MaxWidth | Option passed to a control to specify a maximum width. 传递给控件指定一个最大宽度的选项。 |
MinHeight | Option passed to a control to specify a minimum height. 传递给控件指定一个最小高度的选项。 |
MinWidth | Option passed to a control to specify a minimum width. 传递给控件指定一个最小宽度的选项。 |
PasswordField | Make a text field where the user can enter a password. 创建一个单行密码文本字段,用户可以输入密码。 |
RepeatButton | Make a repeating button. The button returns true as long as the user holds down the mouse. 创建一个重复按钮。当用户点击按钮会立即发生一些事件。只要用户按住鼠标,按钮返回true。 |
SelectionGrid | Make a Selection Grid. 创建一个选择表格。 |
Space | Insert a space in the current layout group. 在当前层组插入空白。 |
TextArea | Make a multi-line text field 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. 创建一个开关按钮。 |
Toolbar | Make a toolbar. 创建一个工具栏。 |
VerticalScrollbar | Make a vertical scrollbar. 创建垂直滚动条。 |
VerticalSlider | A vertical slider the user can drag to change a value between a min and a max. 创建一个垂直滑动条,用户可以拖动改变在最小和最大值之间的值。 |
Width | Option passed to a control to give it an absolute width. 传递给控件的选项,给它一个绝对的宽度。 |
Window | Make a popup window that layouts its contents automatically. 创建一个弹出窗口,它的内容是自动布局的。 |