# EditorGUILayout

> Auto laid out version of EditorGUI.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public sealed class EditorGUILayout
```

## Static Methods

| Method                                                                                                                                | Description                                                                                                                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BeginBuildTargetSelectionGrouping](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginbuildtargetselectiongrouping.md) | Begin a build target grouping and get the selected BuildTargetGroup back.                                                                                                                          |
| [BeginFadeGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginfadegroup.md)                                       | Begins a group that can be be hidden/shown and the transition will be animated.                                                                                                                    |
| [BeginFoldoutHeaderGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginfoldoutheadergroup.md)                     | Make a label with a foldout arrow to the left of it.                                                                                                                                               |
| [BeginHorizontal](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginhorizontal.md)                                     | Begin a horizontal group and get its rect back.                                                                                                                                                    |
| [BeginScrollView](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginscrollview.md)                                     | Begin an automatically laid out scrollview.                                                                                                                                                        |
| [BeginToggleGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/begintogglegroup.md)                                   | Begin a vertical group with a toggle to enable or disable all the controls within at once.                                                                                                         |
| [BeginVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginvertical.md)                                         | Begin a vertical group and get its rect back.                                                                                                                                                      |
| [BoundsField](/engine/6000.0/script-reference/unityeditor/editorguilayout/boundsfield.md)                                             | Make Center & Extents field for entering a [Bounds](/engine/6000.0/script-reference/unityengine/bounds.md).                                                                                        |
| [BoundsIntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/boundsintfield.md)                                       | Make Position & Size field for entering a [BoundsInt](/engine/6000.0/script-reference/unityengine/boundsint.md).                                                                                   |
| [ColorField](/engine/6000.0/script-reference/unityeditor/editorguilayout/colorfield.md)                                               | Make a field for selecting a [Color](/engine/6000.0/script-reference/unityengine/color.md).                                                                                                        |
| [CurveField](/engine/6000.0/script-reference/unityeditor/editorguilayout/curvefield.md)                                               | Make a field for editing an [AnimationCurve](/engine/6000.0/script-reference/unityengine/animationcurve.md).                                                                                       |
| [DelayedDoubleField](/engine/6000.0/script-reference/unityeditor/editorguilayout/delayeddoublefield.md)                               | Make a delayed text field for entering doubles.                                                                                                                                                    |
| [DelayedFloatField](/engine/6000.0/script-reference/unityeditor/editorguilayout/delayedfloatfield.md)                                 | Make a delayed text field for entering floats.                                                                                                                                                     |
| [DelayedIntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/delayedintfield.md)                                     | Make a delayed text field for entering integers.                                                                                                                                                   |
| [DelayedTextField](/engine/6000.0/script-reference/unityeditor/editorguilayout/delayedtextfield.md)                                   | Make a delayed text field.                                                                                                                                                                         |
| [DoubleField](/engine/6000.0/script-reference/unityeditor/editorguilayout/doublefield.md)                                             | Make a text field for entering double values.                                                                                                                                                      |
| [DropdownButton](/engine/6000.0/script-reference/unityeditor/editorguilayout/dropdownbutton.md)                                       | Make a button that reacts to mouse down, for displaying your own dropdown content.                                                                                                                 |
| [EditorToolbar](/engine/6000.0/script-reference/unityeditor/editorguilayout/editortoolbar.md)                                         | Makes a toolbar populated with the specified collection of editor tools.                                                                                                                           |
| [EditorToolbarForTarget](/engine/6000.0/script-reference/unityeditor/editorguilayout/editortoolbarfortarget.md)                       | Makes a toolbar populated with the collection of editor tools that match the EditorToolAttribute of the target object.                                                                             |
| [EndBuildTargetSelectionGrouping](/engine/6000.0/script-reference/unityeditor/editorguilayout/endbuildtargetselectiongrouping.md)     | Close a group started with BeginBuildTargetSelectionGrouping.                                                                                                                                      |
| [EndFadeGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/endfadegroup.md)                                           | Closes a group started with BeginFadeGroup.                                                                                                                                                        |
| [EndFoldoutHeaderGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/endfoldoutheadergroup.md)                         | Closes a group started with BeginFoldoutHeaderGroup.                                                                                                                                               |
| [EndHorizontal](/engine/6000.0/script-reference/unityeditor/editorguilayout/endhorizontal.md)                                         | Close a group started with BeginHorizontal.                                                                                                                                                        |
| [EndScrollView](/engine/6000.0/script-reference/unityeditor/editorguilayout/endscrollview.md)                                         | Ends a scrollview started with a call to BeginScrollView.                                                                                                                                          |
| [EndToggleGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/endtogglegroup.md)                                       | Close a group started with [EditorGUILayout.BeginToggleGroup](/engine/6000.0/script-reference/unityeditor/editorguilayout/begintogglegroup.md).                                                    |
| [EndVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/endvertical.md)                                             | Close a group started with BeginVertical.                                                                                                                                                          |
| [EnumFlagsField](/engine/6000.0/script-reference/unityeditor/editorguilayout/enumflagsfield.md)                                       | Displays a menu with an option for every value of the enum type when clicked.                                                                                                                      |
| [EnumPopup](/engine/6000.0/script-reference/unityeditor/editorguilayout/enumpopup.md)                                                 | Make an enum popup selection field.                                                                                                                                                                |
| [FloatField](/engine/6000.0/script-reference/unityeditor/editorguilayout/floatfield.md)                                               | Make a text field for entering float values.                                                                                                                                                       |
| [Foldout](/engine/6000.0/script-reference/unityeditor/editorguilayout/foldout.md)                                                     | Make a label with a foldout arrow to the left of it.                                                                                                                                               |
| [GetControlRect](/engine/6000.0/script-reference/unityeditor/editorguilayout/getcontrolrect.md)                                       | Get a rect for an Editor control.                                                                                                                                                                  |
| [GradientField](/engine/6000.0/script-reference/unityeditor/editorguilayout/gradientfield.md)                                         | Make a field for editing a [Gradient](/engine/6000.0/script-reference/unityengine/gradient.md).                                                                                                    |
| [HelpBox](/engine/6000.0/script-reference/unityeditor/editorguilayout/helpbox.md)                                                     | Make a help box with a message to the user.                                                                                                                                                        |
| [InspectorTitlebar](/engine/6000.0/script-reference/unityeditor/editorguilayout/inspectortitlebar.md)                                 | Make an inspector-window-like titlebar.                                                                                                                                                            |
| [IntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/intfield.md)                                                   | Make a text field for entering integers.                                                                                                                                                           |
| [IntPopup](/engine/6000.0/script-reference/unityeditor/editorguilayout/intpopup.md)                                                   | Make an integer popup selection field.                                                                                                                                                             |
| [IntSlider](/engine/6000.0/script-reference/unityeditor/editorguilayout/intslider.md)                                                 | Make a slider the user can drag to change an integer value between a min and a max.                                                                                                                |
| [LabelField](/engine/6000.0/script-reference/unityeditor/editorguilayout/labelfield.md)                                               | Make a label field. (Useful for showing read-only info.)                                                                                                                                           |
| [LayerField](/engine/6000.0/script-reference/unityeditor/editorguilayout/layerfield.md)                                               | Make a layer selection field.                                                                                                                                                                      |
| [LinkButton](/engine/6000.0/script-reference/unityeditor/editorguilayout/linkbutton.md)                                               | Make a clickable link label.                                                                                                                                                                       |
| [LongField](/engine/6000.0/script-reference/unityeditor/editorguilayout/longfield.md)                                                 | Make a text field for entering long integers.                                                                                                                                                      |
| [MaskField](/engine/6000.0/script-reference/unityeditor/editorguilayout/maskfield.md)                                                 | Make a field for masks.                                                                                                                                                                            |
| [MinMaxSlider](/engine/6000.0/script-reference/unityeditor/editorguilayout/minmaxslider.md)                                           | Make a special slider the user can use to specify a range between a min and a max.                                                                                                                 |
| [ObjectField](/engine/6000.0/script-reference/unityeditor/editorguilayout/objectfield.md)                                             | Make a field to receive any object type.                                                                                                                                                           |
| [PasswordField](/engine/6000.0/script-reference/unityeditor/editorguilayout/passwordfield.md)                                         | Make a text field where the user can enter a password.                                                                                                                                             |
| [Popup](/engine/6000.0/script-reference/unityeditor/editorguilayout/popup.md)                                                         | Make a generic popup selection field.                                                                                                                                                              |
| [PrefixLabel](/engine/6000.0/script-reference/unityeditor/editorguilayout/prefixlabel.md)                                             | Make a label in front of some control.                                                                                                                                                             |
| [PropertyField](/engine/6000.0/script-reference/unityeditor/editorguilayout/propertyfield.md)                                         | Make a field for [SerializedProperty](/engine/6000.0/script-reference/unityeditor/serializedproperty.md).                                                                                          |
| [RectField](/engine/6000.0/script-reference/unityeditor/editorguilayout/rectfield.md)                                                 | Make an X, Y, W & H field for entering a [Rect](/engine/6000.0/script-reference/unityengine/rect.md).                                                                                              |
| [RectIntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/rectintfield.md)                                           | Make an X, Y, W & H field for entering a [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md).                                                                                        |
| [RenderingLayerMaskField](/engine/6000.0/script-reference/unityeditor/editorguilayout/renderinglayermaskfield.md)                     | Makes a layer selection field.                                                                                                                                                                     |
| [SelectableLabel](/engine/6000.0/script-reference/unityeditor/editorguilayout/selectablelabel.md)                                     | Make a selectable label field. (Useful for showing read-only info that can be copy-pasted.)                                                                                                        |
| [Slider](/engine/6000.0/script-reference/unityeditor/editorguilayout/slider.md)                                                       | Make a slider the user can drag to change a value between a min and a max.                                                                                                                         |
| [Space](/engine/6000.0/script-reference/unityeditor/editorguilayout/space.md)                                                         | Make a small space between the previous control and the following.                                                                                                                                 |
| [TagField](/engine/6000.0/script-reference/unityeditor/editorguilayout/tagfield.md)                                                   | Make a tag selection field.                                                                                                                                                                        |
| [TextArea](/engine/6000.0/script-reference/unityeditor/editorguilayout/textarea.md)                                                   | Make a text area.                                                                                                                                                                                  |
| [TextField](/engine/6000.0/script-reference/unityeditor/editorguilayout/textfield.md)                                                 | Make a text field.                                                                                                                                                                                 |
| [Toggle](/engine/6000.0/script-reference/unityeditor/editorguilayout/toggle.md)                                                       | Make a toggle.                                                                                                                                                                                     |
| [ToggleLeft](/engine/6000.0/script-reference/unityeditor/editorguilayout/toggleleft.md)                                               | Make a toggle field where the toggle is to the left and the label immediately to the right of it.                                                                                                  |
| [ToolContextToolbar](/engine/6000.0/script-reference/unityeditor/editorguilayout/toolcontexttoolbar.md)                               | Makes a toolbar populated with the specified collection of editor tool contexts.                                                                                                                   |
| [ToolContextToolbarForTarget](/engine/6000.0/script-reference/unityeditor/editorguilayout/toolcontexttoolbarfortarget.md)             | Makes a toolbar populated with the collection of [EditorToolContext](/engine/6000.0/script-reference/unityeditor/editortools/editortoolcontext.md) that match the targetType of the target object. |
| [Vector2Field](/engine/6000.0/script-reference/unityeditor/editorguilayout/vector2field.md)                                           | Make an X & Y field for entering a [Vector2](/engine/6000.0/script-reference/unityengine/vector2.md).                                                                                              |
| [Vector2IntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/vector2intfield.md)                                     | Make an X & Y integer field for entering a [Vector2Int](/engine/6000.0/script-reference/unityengine/vector2int.md).                                                                                |
| [Vector3Field](/engine/6000.0/script-reference/unityeditor/editorguilayout/vector3field.md)                                           | Make an X, Y & Z field for entering a [Vector3](/engine/6000.0/script-reference/unityengine/vector3.md).                                                                                           |
| [Vector3IntField](/engine/6000.0/script-reference/unityeditor/editorguilayout/vector3intfield.md)                                     | Make an X, Y & Z integer field for entering a [Vector3Int](/engine/6000.0/script-reference/unityengine/vector3int.md).                                                                             |
| [Vector4Field](/engine/6000.0/script-reference/unityeditor/editorguilayout/vector4field.md)                                           | Make an X, Y, Z & W field for entering a [Vector4](/engine/6000.0/script-reference/unityengine/vector4.md).                                                                                        |

## Classes

| Class                                                                                                               | Description                                                                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [EditorGUILayout.FadeGroupScope](/engine/6000.0/script-reference/unityeditor/editorguilayout/fadegroupscope.md)     | Begins a group that can be be hidden/shown and the transition will be animated.                                                                                                                                                                                         |
| [EditorGUILayout.HorizontalScope](/engine/6000.0/script-reference/unityeditor/editorguilayout/horizontalscope.md)   | Disposable helper class for managing [EditorGUILayout.BeginHorizontal](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginhorizontal.md) / [EditorGUILayout.EndHorizontal](/engine/6000.0/script-reference/unityeditor/editorguilayout/endhorizontal.md). |
| [EditorGUILayout.ScrollViewScope](/engine/6000.0/script-reference/unityeditor/editorguilayout/scrollviewscope.md)   | Disposable helper class for managing [EditorGUILayout.BeginScrollView](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginscrollview.md) / [EditorGUILayout.EndScrollView](/engine/6000.0/script-reference/unityeditor/editorguilayout/endscrollview.md). |
| [EditorGUILayout.ToggleGroupScope](/engine/6000.0/script-reference/unityeditor/editorguilayout/togglegroupscope.md) | Begin a vertical group with a toggle to enable or disable all the controls within at once.                                                                                                                                                                              |
| [EditorGUILayout.VerticalScope](/engine/6000.0/script-reference/unityeditor/editorguilayout/verticalscope.md)       | Disposable helper class for managing [EditorGUILayout.BeginVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/beginvertical.md) / [EditorGUILayout.EndVertical](/engine/6000.0/script-reference/unityeditor/editorguilayout/endvertical.md).         |
