GUILayout.EndArea 结束区域

static function EndArea () : void

Description描述

Close a GUILayout block started with BeginArea

关闭由BeginArea开始GUILayout布局块。

GUILayout.EndArea 结束区域

Explained Area of the example.

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
    void OnGUI() {
        GUILayout.BeginArea(new Rect(200, 200, 100, 100));
        GUILayout.Button("Click me");
        GUILayout.Button("Or me");
        GUILayout.EndArea();
    }
}
function OnGUI () {
	GUILayout.BeginArea (Rect (200,200,100,100));
	GUILayout.Button ("Click me");
	GUILayout.Button ("Or me");
	// Ends the area started above
	//结束区域
	GUILayout.EndArea ();
}
Page last updated: 2011-6-14