class in UnityEditor
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
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
These work pretty much like the normal GUI functions - and also have matching implementations in EditorGUILayout.
|Is the platform-dependent "action" modifier key held down? (Read Only)
|The indent level of the field labels.
|Makes the following controls give the appearance of editing multiple different values.
|Starts a new code block to check for GUI changes.
|Create a group of controls that can be disabled.
|Make a label with a foldout arrow to the left of it.
|Create a Property wrapper, useful for making regular GUI controls work with SerializedProperty.
|Makes Center and Extents field for entering a Bounds.
|Makes Position and Size field for entering a BoundsInt.
|Get whether a SerializedProperty's inspector GUI can be cached.
|Makes a field for selecting a Color.
|Makes a field for editing an AnimationCurve.
|Makes a delayed text field for entering doubles.
|Makes a delayed text field for entering floats.
|Makes a delayed text field for entering integers.
|Makes a delayed text field.
|Makes a text field for entering doubles.
|Draws the texture within a rectangle.
|Draws a filled rectangle of color at the specified position and size within the current editor window.
|Draws the alpha channel of a texture within a rectangle.
|Makes a button that reacts to mouse down, for displaying your own dropdown content.
|Draws a label with a drop shadow.
|Ends a code block and checks for any GUI changes.
|Ends a disabled group started with BeginDisabledGroup.
|Closes a group started with BeginFoldoutHeaderGroup. See Also: EditorGUILayout.BeginFoldoutHeaderGroup.
|Ends a Property wrapper started with BeginProperty.
|Displays a menu with an option for every value of the enum type when clicked. An option for the value 0 with name "Nothing" and an option for the value ~0 (that is, all bits set) with the name "Everything" are always displayed at the top of the menu. The names for the values 0 and ~0 can be overriden by defining these values in the enum type.
|Makes an enum popup selection field.
|Makes a text field for entering floats.
|Move keyboard focus to a named text field and begin editing of the content.
|Makes a label with a foldout arrow to the left of it.
|Get the height needed for a PropertyField control.
|Makes a field for editing a Gradient.
|Makes a label for some control.
|Makes a help box with a message to the user.
|Makes an inspector-window-like titlebar.
|Makes a text field for entering integers.
|Makes an integer popup selection field.
|Makes a slider the user can drag to change an integer value between a min and a max.
|Makes a label field. (Useful for showing read-only info.)
|Makes a layer selection field.
|Make a clickable link label.
|Makes a text field for entering long integers.
|Makes a field for masks.
|Makes a special slider the user can use to specify a range between a min and a max.
|Makes a multi-control with text fields for entering multiple floats in the same line.
|Makes a multi-control with text fields for entering multiple integers in the same line.
|Makes a multi-control with several property fields in the same line.
|Makes an object field. You can assign objects either by drag and drop objects or by selecting an object using the Object Picker.
|Makes a text field where the user can enter a password.
|Makes a generic popup selection field.
|Makes a label in front of some control.
|Makes a progress bar.
|Use this to make a field for a SerializedProperty in the Editor.
|Makes an X, Y, W, and H field for entering a Rect.
|Makes an X, Y, W, and H field for entering a RectInt.
|Makes a selectable label field. (Useful for showing read-only info that can be copy-pasted.)
|Makes a slider the user can drag to change a value between a min and a max.
|Makes a tag selection field.
|Makes a text area.
|Makes a text field.
|Makes a toggle.
|Makes a toggle field where the toggle is to the left and the label immediately to the right of it.
|Makes an X and Y field for entering a Vector2.
|Makes an X and Y integer field for entering a Vector2Int.
|Makes an X, Y, and Z field for entering a Vector3.
|Makes an X, Y, and Z integer field for entering a Vector3Int.
|Makes an X, Y, Z, and W field for entering a Vector4.