EditorGUILayout
- BeginHorizontal
- BeginScrollView
- BeginToggleGroup
- BeginVertical
- BoundsField
- ColorField
- CurveField
- EndHorizontal
- EndScrollView
- EndToggleGroup
- EndVertical
- EnumPopup
- FloatField
- Foldout
- InspectorTitlebar
- IntField
- IntPopup
- IntSlider
- LabelField
- LayerField
- MinMaxSlider
- ObjectField
- PasswordField
- Popup
- PrefixLabel
- PropertyField
- RectField
- SelectableLabel
- Slider
- Space
- TagField
- TextArea
- TextField
- Toggle
- Vector2Field
- Vector3Field
- Vector4Field
EditorGUILayout.EndHorizontal 结束水平组
static function EndHorizontal () : void
Description描述
Close a group started with BeginHorizontal
关闭一个BeginHorizontal开始的组。
参见:EditorGUILayout.BeginHorizontal
Horizontal Compound group.
水平混合组
// Create a Horizontal Compound Button
//创建一个水平混合按钮
class BeginEndHorizontalExample extends EditorWindow {
@MenuItem("Examples/Begin-End Horizontal usage")
static function Init() {
var window = GetWindow(BeginEndHorizontalExample);
window.Show();
}
function OnGUI() {
var r : Rect = EditorGUILayout.BeginHorizontal ("Button");
if (GUI.Button (r, GUIContent.none))
Debug.Log ("Go here");
GUILayout.Label ("I'm inside the button");
GUILayout.Label ("So am I");
EditorGUILayout.EndHorizontal ();
}
}
最后修改:2011年7月14日 Thursday 20:21