Version: 2021.2
public static void EndVertical ();

描述

闭合以 BeginVertical 开始的组。

\ 垂直布局。

using UnityEngine;

public class ExampleScript : MonoBehaviour { void OnGUI() { GUILayout.BeginVertical("box");

GUILayout.Button("I'm the top button"); GUILayout.Button("I'm the bottom button");

// End the vertical group we started above GUILayout.EndVertical(); } }