EditorGUILayout.EndHorizontal 结束水平组

static function EndHorizontal () : void

Description描述

Close a group started with BeginHorizontal

关闭一个BeginHorizontal开始的组。

参见:EditorGUILayout.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 ();
	}
}
Page last updated: 2011-7-14