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.EndArea 结束区域
static function EndArea () : void
Description描述
Close a GUILayout block started with BeginArea
关闭由BeginArea开始GUILayout布局块。
Explained Area of the example.
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void OnGUI() {
GUILayout.BeginArea(new Rect(200, 200, 100, 100));
GUILayout.Button("Click me");
GUILayout.Button("Or me");
GUILayout.EndArea();
}
}
function OnGUI () {
GUILayout.BeginArea (Rect (200,200,100,100));
GUILayout.Button ("Click me");
GUILayout.Button ("Or me");
// Ends the area started above
//结束区域
GUILayout.EndArea ();
}
最后修改:2011年6月14日 Tuesday 15:31