GUILayout.EndHorizontal 结束水平组

static function EndHorizontal () : void

Description描述

Close a group started with BeginHorizontal

关闭由BeginHorizontal开始的一个组。

GUILayout.EndHorizontal 结束水平组

Horizontal Layout. 水平布局

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void OnGUI() {
		GUILayout.BeginHorizontal("box");
		GUILayout.Button("I'm the first button");
		GUILayout.Button("I'm to the right");
		GUILayout.EndHorizontal();
	}
}
function OnGUI () {
	GUILayout.BeginHorizontal ("box");
	
	GUILayout.Button ("I'm the first button");
	GUILayout.Button ("I'm to the right");

	// End the horizontal group we began above
	//结束上面我们开始的水平组
	GUILayout.EndHorizontal ();
}
Page last updated: 2011-6-14