GUILayout
- BeginArea
- BeginHorizontal
- BeginScrollView
- BeginVertical
- Box
- Button
- EndArea
- EndHorizontal
- EndScrollView
- EndVertical
- ExpandHeight
- ExpandWidth
- FlexibleSpace
- Height
- HorizontalScrollbar
- HorizontalSlider
- Label
- MaxHeight
- MaxWidth
- MinHeight
- MinWidth
- PasswordField
- RepeatButton
- SelectionGrid
- Space
- TextArea
- TextField
- Toggle
- Toolbar
- VerticalScrollbar
- VerticalSlider
- Width
- Window
GUILayout.EndVertical 结束垂直组
static function EndVertical () : void
Description描述
Close a group started with BeginVertical
关闭由BeginVertical开始的一个组。
Vertical Layout. 垂直布局
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
GUILayout.BeginVertical("box");
GUILayout.Button("I'm the top button");
GUILayout.Button("I'm the bottom button");
GUILayout.EndVertical();
}
}
function OnGUI () {
GUILayout.BeginVertical ("box");
GUILayout.Button ("I'm the top button");
GUILayout.Button ("I'm the bottom button");
// End the vertical group we started above
//关闭上面我们已经开始垂直组
GUILayout.EndVertical();
}
最后修改:2011年6月14日 Tuesday 15:21