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.EndHorizontal 结束水平组
static function EndHorizontal () : void
Description描述
Close a group started with BeginHorizontal
关闭由BeginHorizontal开始的一个组。
Horizontal Layout. 水平布局
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
GUILayout.BeginHorizontal("box");
GUILayout.Button("I'm the first button");
GUILayout.Button("I'm to the right");
GUILayout.EndHorizontal();
}
}
function OnGUI () {
GUILayout.BeginHorizontal ("box");
GUILayout.Button ("I'm the first button");
GUILayout.Button ("I'm to the right");
// End the horizontal group we began above
//结束上面我们开始的水平组
GUILayout.EndHorizontal ();
}
最后修改:2011年6月14日 Tuesday 15:24