# GUI

> The GUI class is the interface for Unity's GUI with manual positioning.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public class GUI
```

## Remarks

.

Additional Resources: GUI tutorial

## Static Properties

| Property                                                                              | Description                                                                                       |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| [backgroundColor](/engine/6000.7/script-reference/unityengine/gui/backgroundcolor.md) | Global tinting color for all background elements rendered by the GUI.                             |
| [changed](/engine/6000.7/script-reference/unityengine/gui/changed.md)                 | Returns true if any controls changed the value of the input data.                                 |
| [color](/engine/6000.7/script-reference/unityengine/gui/color.md)                     | Applies a global tint to the GUI. The tint affects backgrounds and text colors.                   |
| [contentColor](/engine/6000.7/script-reference/unityengine/gui/contentcolor.md)       | Tinting color for all text rendered by the GUI.                                                   |
| [depth](/engine/6000.7/script-reference/unityengine/gui/depth.md)                     | The sorting depth of the currently executing GUI behaviour.                                       |
| [enabled](/engine/6000.7/script-reference/unityengine/gui/enabled.md)                 | Is the GUI enabled?                                                                               |
| [matrix](/engine/6000.7/script-reference/unityengine/gui/matrix.md)                   | The GUI transform matrix.                                                                         |
| [skin](/engine/6000.7/script-reference/unityengine/gui/skin.md)                       | The global skin to use.                                                                           |
| [tooltip](/engine/6000.7/script-reference/unityengine/gui/tooltip.md)                 | The tooltip of the control the mouse is currently over, or which has keyboard focus. (Read Only). |

## Static Methods

| Method                                                                                                  | Description                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [BeginGroup](/engine/6000.7/script-reference/unityengine/gui/begingroup.md)                             | Begin a group. Must be matched with a call to [GUI.EndGroup](/engine/6000.7/script-reference/unityengine/gui/endgroup.md).                                                   |
| [BeginScrollView](/engine/6000.7/script-reference/unityengine/gui/beginscrollview.md)                   | Begin a scrolling view inside your GUI.                                                                                                                                      |
| [Box](/engine/6000.7/script-reference/unityengine/gui/box.md)                                           | Create a Box on the GUI Layer.                                                                                                                                               |
| [BringWindowToBack](/engine/6000.7/script-reference/unityengine/gui/bringwindowtoback.md)               | Bring a specific window to back of the floating windows.                                                                                                                     |
| [BringWindowToFront](/engine/6000.7/script-reference/unityengine/gui/bringwindowtofront.md)             | Bring a specific window to front of the floating windows.                                                                                                                    |
| [Button](/engine/6000.7/script-reference/unityengine/gui/button.md)                                     | Make a single press button. The user clicks them and something happens immediately.                                                                                          |
| [DragWindow](/engine/6000.7/script-reference/unityengine/gui/dragwindow.md)                             | If you want to have the entire window background to act as a drag area, use the version of DragWindow that takes no parameters and put it at the end of the window function. |
| [DrawTexture](/engine/6000.7/script-reference/unityengine/gui/drawtexture.md)                           | Draw a texture within a rectangle.                                                                                                                                           |
| [DrawTextureWithTexCoords](/engine/6000.7/script-reference/unityengine/gui/drawtexturewithtexcoords.md) | Draw a texture within a rectangle with the given texture coordinates.                                                                                                        |
| [EndGroup](/engine/6000.7/script-reference/unityengine/gui/endgroup.md)                                 | End a group.                                                                                                                                                                 |
| [EndScrollView](/engine/6000.7/script-reference/unityengine/gui/endscrollview.md)                       | Ends a scrollview started with a call to BeginScrollView.                                                                                                                    |
| [FocusControl](/engine/6000.7/script-reference/unityengine/gui/focuscontrol.md)                         | Move keyboard focus to a named control.                                                                                                                                      |
| [FocusWindow](/engine/6000.7/script-reference/unityengine/gui/focuswindow.md)                           | Make a window become the active window.                                                                                                                                      |
| [GetNameOfFocusedControl](/engine/6000.7/script-reference/unityengine/gui/getnameoffocusedcontrol.md)   | Get the name of named control that has focus.                                                                                                                                |
| [HorizontalScrollbar](/engine/6000.7/script-reference/unityengine/gui/horizontalscrollbar.md)           | Make a horizontal scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.                                     |
| [HorizontalSlider](/engine/6000.7/script-reference/unityengine/gui/horizontalslider.md)                 | A horizontal slider the user can drag to change a value between a min and a max.                                                                                             |
| [Label](/engine/6000.7/script-reference/unityengine/gui/label.md)                                       | Make a text or texture label on screen.                                                                                                                                      |
| [ModalWindow](/engine/6000.7/script-reference/unityengine/gui/modalwindow.md)                           | Show a Modal Window.                                                                                                                                                         |
| [PasswordField](/engine/6000.7/script-reference/unityengine/gui/passwordfield.md)                       | Make a text field where the user can enter a password.                                                                                                                       |
| [RepeatButton](/engine/6000.7/script-reference/unityengine/gui/repeatbutton.md)                         | Make a button that is active as long as the user holds it down.                                                                                                              |
| [ScrollTo](/engine/6000.7/script-reference/unityengine/gui/scrollto.md)                                 | Scrolls all enclosing scrollviews so they try to make `position` visible.                                                                                                    |
| [SelectionGrid](/engine/6000.7/script-reference/unityengine/gui/selectiongrid.md)                       | Make a grid of buttons.                                                                                                                                                      |
| [SetNextControlName](/engine/6000.7/script-reference/unityengine/gui/setnextcontrolname.md)             | Set the name of the next control.                                                                                                                                            |
| [TextArea](/engine/6000.7/script-reference/unityengine/gui/textarea.md)                                 | Make a Multi-line text area where the user can edit a string.                                                                                                                |
| [TextField](/engine/6000.7/script-reference/unityengine/gui/textfield.md)                               | Make a single-line text field where the user can edit a string.                                                                                                              |
| [Toggle](/engine/6000.7/script-reference/unityengine/gui/toggle.md)                                     | Make an on/off toggle button.                                                                                                                                                |
| [Toolbar](/engine/6000.7/script-reference/unityengine/gui/toolbar.md)                                   | Make a toolbar.                                                                                                                                                              |
| [UnfocusWindow](/engine/6000.7/script-reference/unityengine/gui/unfocuswindow.md)                       | Remove focus from all windows.                                                                                                                                               |
| [VerticalScrollbar](/engine/6000.7/script-reference/unityengine/gui/verticalscrollbar.md)               | Make a vertical scrollbar. Scrollbars are what you use to scroll through a document. Most likely, you want to use scrollViews instead.                                       |
| [VerticalSlider](/engine/6000.7/script-reference/unityengine/gui/verticalslider.md)                     | A vertical slider the user can drag to change a value between a min and a max.                                                                                               |
| [Window](/engine/6000.7/script-reference/unityengine/gui/window.md)                                     | Make a popup window.                                                                                                                                                         |

## Classes

| Class                                                                                     | Description                                                                                                                                                                                                             |
| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GUI.GroupScope](/engine/6000.7/script-reference/unityengine/gui/groupscope.md)           | Disposable helper class for managing [GUI.BeginGroup](/engine/6000.7/script-reference/unityengine/gui/begingroup.md) / [GUI.EndGroup](/engine/6000.7/script-reference/unityengine/gui/endgroup.md).                     |
| [GUI.ScrollViewScope](/engine/6000.7/script-reference/unityengine/gui/scrollviewscope.md) | Disposable helper class for managing [GUI.BeginScrollView](/engine/6000.7/script-reference/unityengine/gui/beginscrollview.md) / [GUI.EndScrollView](/engine/6000.7/script-reference/unityengine/gui/endscrollview.md). |

## Enums

| Enum                                                                                          | Description                                       |
| --------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| [GUI.ToolbarButtonSize](/engine/6000.7/script-reference/unityengine/gui/toolbarbuttonsize.md) | Determines how toolbar button size is calculated. |

## Delegates

| Delegate                                                                                | Description                                                                                                               |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [GUI.WindowFunction](/engine/6000.7/script-reference/unityengine/gui/windowfunction.md) | Callback to draw GUI within a window (used with [GUI.Window](/engine/6000.7/script-reference/unityengine/gui/window.md)). |
