BeginAreaで開始したGUILayoutブロックを閉じます
領域を説明した例
function OnGUI () { GUILayout.BeginArea (Rect (10,10,100,100)); GUILayout.Button ("Click me"); GUILayout.Button ("Or me"); // Ends the area started above GUILayout.EndArea (); }
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void OnGUI() { GUILayout.BeginArea(new Rect(10, 10, 100, 100)); GUILayout.Button("Click me"); GUILayout.Button("Or me"); GUILayout.EndArea(); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def OnGUI() as void: GUILayout.BeginArea(Rect(10, 10, 100, 100)) GUILayout.Button('Click me') GUILayout.Button('Or me') GUILayout.EndArea()