EndArea()
Close a GUILayout block started with BeginArea.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.IMGUIModule
public static void EndArea()
Remarks

Explained Area of the example.
Examples
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(); }}