기술 자료

Unity Engine

Unity Engine

EndVertical()

Close a group started with BeginVertical.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void EndVertical()

Remarks

Additional Resources: EditorGUILayout.BeginVertical
BeginEndVerticalExample (EndVertical())
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(); }}