public static void EndArea ();

Description

闭合以 BeginArea 开始的 GUILayout 块。


Explained Area of the example.

using UnityEngine;

public class ExampleScript : MonoBehaviour { void OnGUI() { GUILayout.BeginArea(new Rect(10, 10, 100, 100)); GUILayout.Button("Click me"); GUILayout.Button("Or me"); // Ends the area started above GUILayout.EndArea(); } }