Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUILayout.EndArea

public static function EndArea(): void;

Description

Close a GUILayout block started with BeginArea.


Explained Area of the example.

	function OnGUI () {
		GUILayout.BeginArea (Rect (10,10,100,100));
		GUILayout.Button ("Click me");
		GUILayout.Button ("Or me");
		// Ends the area started above
		GUILayout.EndArea ();
	}