EndVertical()
Close a group started with BeginVertical.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void EndVertical()
Remarks
Additional Resources: EditorGUILayout.BeginVertical

Vertical Compound group.
Examples
// Create a Vertical Compound Buttonusing UnityEngine;using UnityEditor;public class EndVerticalCS : EditorWindow{ [MenuItem("Examples/Begin-End Vertical usage")] static void Init() { EditorWindow window = GetWindow(typeof(EndVerticalCS)); window.Show(); } void OnGUI() { Rect r = 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(); }}