GUILayout
.EndArea
Manual
Reference
Scripting
Scripting
>
Runtime Classes
>
GUILayout
GUILayout
.EndArea
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
GUILayout
All Members
Class Functions
BeginArea
BeginHorizontal
BeginScrollView
BeginVertical
Box
Button
EndArea
EndHorizontal
EndScrollView
EndVertical
ExpandHeight
ExpandWidth
FlexibleSpace
Height
HorizontalScrollbar
HorizontalSlider
Label
MaxHeight
MaxWidth
MinHeight
MinWidth
PasswordField
RepeatButton
SelectionGrid
Space
TextArea
TextField
Toggle
Toolbar
VerticalScrollbar
VerticalSlider
Width
Window
static
function
EndArea () :
void
Description
Close a GUILayout block started with BeginArea
Explained Area of the example.
JavaScripts
JavaScript
C#
Boo
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
example :
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
class
example(
MonoBehaviour
):
def
OnGUI
():
GUILayout.BeginArea
(
Rect
(10, 10, 100, 100))
GUILayout.Button
('Click me')
GUILayout.Button
('Or me')
GUILayout.EndArea
()