EditorGUILayout

Auto-layouted version of EditorGUI.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Class Functions
LabelField

Toggle

TextField

TextArea

SelectableLabel

PasswordField

FloatField

IntField

Slider

IntSlider

MinMaxSlider

Popup

EnumPopup

IntPopup

TagField

Make a tag selection field.

LayerField

Make a layer selection field.

MaskField

Make a field for masks.

EnumMaskField

Make a field for enum based masks.

ObjectField

Vector2Field

Vector3Field

Vector4Field

RectField

BoundsField

ColorField

CurveField

InspectorTitlebar

Make an inspector-window-like titlebar.

Foldout

Make a label with a foldout arrow to the left of it.

HelpBox

Make a help box with a message to the user.

PrefixLabel

Make a label in front of some control.

Space

Make a small space between the previous control and the following.

BeginToggleGroup

Begin a vertical group with a toggle to enable or disable all the controls within at once.

EndToggleGroup

Close a group started with BeginToggleGroup.

BeginHorizontal

Begin a horizontal group and get its rect back.

EndHorizontal

Close a group started with BeginHorizontal.

BeginVertical

Begin a vertical group and get its rect back.

EndVertical

Close a group started with BeginVertical.

BeginScrollView

Begin an automatically layouted scrollview.

EndScrollView

Ends a scrollview started with a call to BeginScrollView.

PropertyField

Make a field for SerializedProperty.