Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

EditorGUILayout

Namespace: UnityEditor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Auto-layouted version of EditorGUI.

Static Functions

BeginFadeGroup Begins a group that can be be hidden/shown and the transition will be animated.
BeginHorizontal Begin a horizontal group and get its rect back.
BeginScrollView Begin an automatically layouted scrollview.
BeginToggleGroup Begin a vertical group with a toggle to enable or disable all the controls within at once.
BeginVertical Begin a vertical group and get its rect back.
BoundsField Make Center & Extents field for entering a Bounds.
ColorField Make a field for selecting a Color.
CurveField Make a field for editing an AnimationCurve.
EndFadeGroup Closes a group started with BeginFadeGroup.
EndHorizontal Close a group started with BeginHorizontal.
EndScrollView Ends a scrollview started with a call to BeginScrollView.
EndToggleGroup Close a group started with BeginToggleGroup.
EndVertical Close a group started with BeginVertical.
EnumMaskField Make a field for enum based masks.
EnumPopup Make an enum popup selection field.
FloatField Make a text field for entering float values.
Foldout Make a label with a foldout arrow to the left of it.
GetControlRect Get a rect for an Editor control.
HelpBox Make a help box with a message to the user.
InspectorTitlebar Make an inspector-window-like titlebar.
IntField Make a text field for entering integers.
IntPopup Make an integer popup selection field.
IntSlider Make a slider the user can drag to change an integer value between a min and a max.
LabelField Make a label field. (Useful for showing read-only info.)
LayerField Make a layer selection field.
MaskField Make a field for masks.
MinMaxSlider Make a special slider the user can use to specify a range between a min and a max.
ObjectField Make a field to receive any object type.
PasswordField Make a text field where the user can enter a password.
Popup Make a generic popup selection field.
PrefixLabel Make a label in front of some control.
PropertyField Make a field for SerializedProperty.
RectField Make an X, Y, W & H field for entering a Rect.
SelectableLabel Make a selectable label field. (Useful for showing read-only info that can be copy-pasted.)
Slider Make a slider the user can drag to change a value between a min and a max.
Space Make a small space between the previous control and the following.
TagField Make a tag selection field.
TextArea Make a text area.
TextField Make a text field.
Toggle Make a toggle.
ToggleLeft Make a toggle field where the toggle is to the left and the label immediately to the right of it.
Vector2Field Make an X & Y field for entering a Vector2.
Vector3Field Make an X, Y & Z field for entering a Vector3.
Vector4Field Make an X, Y, Z & W field for entering a Vector4.