EditorGUILayout.EndVertical 结束垂直组
static function EndVertical () : void
Description描述
Close a group started with BeginVertical
结束一个由BeginVertical开始的组。
参见:EditorGUILayout.BeginVertical
Vertical Compound group.
垂直混合组。
// Create a Vertical Compound Button//创建一个垂直混合按钮 class BeginEndVerticalExample extends EditorWindow {@MenuItem("Examples/Begin-End Vertical usage")static function Init() {var window = GetWindow(BeginEndVerticalExample);window.Show();}function OnGUI() {var r : Rect = EditorGUILayout.BeginVertical("Button");if (GUI.Button(r, GUIContent.none))Debug.Log("Go here");GUILayout.Label("I'm inside the button");GUILayout.Label("So am I");EditorGUILayout.EndVertical();}}