GUILayout.EndVertical 结束垂直组

static function EndVertical () : void

Description描述

Close a group started with BeginVertical

关闭由BeginVertical开始的一个组。

GUILayout.EndVertical 结束垂直组

Vertical Layout. 垂直布局

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		GUILayout.BeginVertical("box");
		GUILayout.Button("I'm the top button");
		GUILayout.Button("I'm the bottom button");
		GUILayout.EndVertical();
	}
}
function 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();
}
Page last updated: 2011-6-14