# EditorGUIUtility

> Miscellaneous helper stuff for EditorGUI.

## Definition

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

```csharp
public sealed class EditorGUIUtility : GUIUtility
```

## Static Properties

| Property                                                                                                           | Description                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| [currentViewWidth](/engine/6000.0/script-reference/unityeditor/editorguiutility/currentviewwidth.md)               | The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call. |
| [editingTextField](/engine/6000.0/script-reference/unityeditor/editorguiutility/editingtextfield.md)               | Is a text field currently editing text?                                                                                           |
| [fieldWidth](/engine/6000.0/script-reference/unityeditor/editorguiutility/fieldwidth.md)                           | The minimum width in pixels reserved for the fields of Editor GUI controls.                                                       |
| [hierarchyMode](/engine/6000.0/script-reference/unityeditor/editorguiutility/hierarchymode.md)                     | Is the Editor GUI in hierarchy mode?                                                                                              |
| [isProSkin](/engine/6000.0/script-reference/unityeditor/editorguiutility/isproskin.md)                             | Is the user currently using the pro skin? (Read Only)                                                                             |
| [labelWidth](/engine/6000.0/script-reference/unityeditor/editorguiutility/labelwidth.md)                           | The width in pixels reserved for labels of Editor GUI controls.                                                                   |
| [pixelsPerPoint](/engine/6000.0/script-reference/unityeditor/editorguiutility/pixelsperpoint.md)                   | The scale of GUI points relative to screen pixels for the current view                                                            |
| [singleLineHeight](/engine/6000.0/script-reference/unityeditor/editorguiutility/singlelineheight.md)               | Get the height used for a single Editor control such as a one-line EditorGUI.TextField or EditorGUI.Popup.                        |
| [standardVerticalSpacing](/engine/6000.0/script-reference/unityeditor/editorguiutility/standardverticalspacing.md) | Get the height used by default for vertical spacing between controls.                                                             |
| [systemCopyBuffer](/engine/6000.0/script-reference/unityeditor/editorguiutility/systemcopybuffer.md)               | The system copy buffer.                                                                                                           |
| [textFieldHasSelection](/engine/6000.0/script-reference/unityeditor/editorguiutility/textfieldhasselection.md)     | True if a text field currently has focused and the text in it is selected.                                                        |
| [whiteTexture](/engine/6000.0/script-reference/unityeditor/editorguiutility/whitetexture.md)                       | Get a white texture.                                                                                                              |
| [wideMode](/engine/6000.0/script-reference/unityeditor/editorguiutility/widemode.md)                               | Is the Editor GUI currently in wide mode?                                                                                         |

## Static Methods

| Method                                                                                                                       | Description                                                                                                                                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AddCursorRect](/engine/6000.0/script-reference/unityeditor/editorguiutility/addcursorrect.md)                               | Add a custom mouse pointer to a control.                                                                                                                                                                                                                     |
| [CommandEvent](/engine/6000.0/script-reference/unityeditor/editorguiutility/commandevent.md)                                 | Creates an event that can be sent to another window.                                                                                                                                                                                                         |
| [DrawColorSwatch](/engine/6000.0/script-reference/unityeditor/editorguiutility/drawcolorswatch.md)                           | Draw a color swatch.                                                                                                                                                                                                                                         |
| [DrawCurveSwatch](/engine/6000.0/script-reference/unityeditor/editorguiutility/drawcurveswatch.md)                           | Draw a curve swatch.                                                                                                                                                                                                                                         |
| [DrawRegionSwatch](/engine/6000.0/script-reference/unityeditor/editorguiutility/drawregionswatch.md)                         | Draw swatch with a filled region between two SerializedProperty curves.                                                                                                                                                                                      |
| [FindTexture](/engine/6000.0/script-reference/unityeditor/editorguiutility/findtexture.md)                                   | Get a texture from its source filename.                                                                                                                                                                                                                      |
| [GetBuiltinSkin](/engine/6000.0/script-reference/unityeditor/editorguiutility/getbuiltinskin.md)                             | Get one of the built-in GUI skins, which can be the game view, inspector or Scene view skin as chosen by the parameter.                                                                                                                                      |
| [GetFlowLayoutedRects](/engine/6000.0/script-reference/unityeditor/editorguiutility/getflowlayoutedrects.md)                 | Layout list of string items left to right, top to bottom in the given area.                                                                                                                                                                                  |
| [GetIconForObject](/engine/6000.0/script-reference/unityeditor/editorguiutility/geticonforobject.md)                         | Gets the custom icon associated with an object. Only [GameObjects](/engine/6000.0/manual/working-with-gameobjects/game-objects.md) and MonoScripts have associated custom icons.                                                                             |
| [GetIconSize](/engine/6000.0/script-reference/unityeditor/editorguiutility/geticonsize.md)                                   | Get the size that has been set using [EditorGUIUtility.SetIconSize](/engine/6000.0/script-reference/unityeditor/editorguiutility/seticonsize.md).                                                                                                            |
| [GetMainWindowPosition](/engine/6000.0/script-reference/unityeditor/editorguiutility/getmainwindowposition.md)               | Returns position of Unity Editor's main window.                                                                                                                                                                                                              |
| [GetObjectPickerControlID](/engine/6000.0/script-reference/unityeditor/editorguiutility/getobjectpickercontrolid.md)         | The controlID of the currently showing object picker.                                                                                                                                                                                                        |
| [GetObjectPickerObject](/engine/6000.0/script-reference/unityeditor/editorguiutility/getobjectpickerobject.md)               | The object currently selected in the object picker.                                                                                                                                                                                                          |
| [HasObjectThumbnail](/engine/6000.0/script-reference/unityeditor/editorguiutility/hasobjectthumbnail.md)                     | Does a given class have per-object thumbnails?                                                                                                                                                                                                               |
| [IconContent](/engine/6000.0/script-reference/unityeditor/editorguiutility/iconcontent.md)                                   | Fetch the [GUIContent](/engine/6000.0/script-reference/unityengine/guicontent.md) from the Unity builtin resources with the given name.                                                                                                                      |
| [IsDisplayReferencedByCameras](/engine/6000.0/script-reference/unityeditor/editorguiutility/isdisplayreferencedbycameras.md) | Check if any enabled camera can render to a particular display.                                                                                                                                                                                              |
| [Load](/engine/6000.0/script-reference/unityeditor/editorguiutility/load.md)                                                 | Load a built-in resource.                                                                                                                                                                                                                                    |
| [LoadRequired](/engine/6000.0/script-reference/unityeditor/editorguiutility/loadrequired.md)                                 | Load a required built-in resource.                                                                                                                                                                                                                           |
| [ObjectContent](/engine/6000.0/script-reference/unityeditor/editorguiutility/objectcontent.md)                               | Return a GUIContent object with the name and icon of an Object.                                                                                                                                                                                              |
| [PingObject](/engine/6000.0/script-reference/unityeditor/editorguiutility/pingobject.md)                                     | Ping an object in the Scene like clicking it in an inspector.                                                                                                                                                                                                |
| [PixelsToPoints](/engine/6000.0/script-reference/unityeditor/editorguiutility/pixelstopoints.md)                             | Convert a Rect from pixel space to point space.                                                                                                                                                                                                              |
| [PointsToPixels](/engine/6000.0/script-reference/unityeditor/editorguiutility/pointstopixels.md)                             | Converts a position from point to pixel space.                                                                                                                                                                                                               |
| [QueueGameViewInputEvent](/engine/6000.0/script-reference/unityeditor/editorguiutility/queuegameviewinputevent.md)           | Send an input event into the game.                                                                                                                                                                                                                           |
| [SetIconForObject](/engine/6000.0/script-reference/unityeditor/editorguiutility/seticonforobject.md)                         | Sets a custom icon to associate with a [GameObject](/engine/6000.0/script-reference/unityengine/gameobject.md) or [MonoScript](/engine/6000.0/script-reference/unityeditor/monoscript.md). The custom icon is displayed in the Scene view and the Inspector. |
| [SetIconSize](/engine/6000.0/script-reference/unityeditor/editorguiutility/seticonsize.md)                                   | Set icons rendered as part of [GUIContent](/engine/6000.0/script-reference/unityengine/guicontent.md) to be rendered at a specific size.                                                                                                                     |
| [SetMainWindowPosition](/engine/6000.0/script-reference/unityeditor/editorguiutility/setmainwindowposition.md)               | Sets position of Unity Editor's main window.                                                                                                                                                                                                                 |
| [ShowObjectPicker](/engine/6000.0/script-reference/unityeditor/editorguiutility/showobjectpicker.md)                         | Show the object picker from code.                                                                                                                                                                                                                            |
| [TrIconContent](/engine/6000.0/script-reference/unityeditor/editorguiutility/triconcontent.md)                               | Gets the  from Unity built-in resources with the given information or creates a  for a GUI element.                                                                                                                                                          |
| [TrTextContent](/engine/6000.0/script-reference/unityeditor/editorguiutility/trtextcontent.md)                               | Gets the  from the Unity built-in resources with the given key or creates a  for a GUI element.                                                                                                                                                              |
| [TrTextContentWithIcon](/engine/6000.0/script-reference/unityeditor/editorguiutility/trtextcontentwithicon.md)               | Gets the  from Unity built-in resources with the given information or creates a  for a GUI element.                                                                                                                                                          |

## Classes

| Class                                                                                                                           | Description                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [EditorGUIUtility.IconSizeScope](/engine/6000.0/script-reference/unityeditor/editorguiutility/iconsizescope.md)                 | Disposable scope helper for [EditorGUIUtility.GetIconSize](/engine/6000.0/script-reference/unityeditor/editorguiutility/geticonsize.md) / [EditorGUIUtility.SetIconSize](/engine/6000.0/script-reference/unityeditor/editorguiutility/seticonsize.md). |
| [EditorGUIUtility.PropertyCallbackScope](/engine/6000.0/script-reference/unityeditor/editorguiutility/propertycallbackscope.md) | Specifies a scope in which a callback gets called before each property is rendered.                                                                                                                                                                    |

## Inheritance

**Inherited Members:**

* [GUIUtility.GetControlID(int, FocusType, Rect)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(int-focustype-rect\))
* [GUIUtility.AlignRectToDevice(Rect, int, int)](/engine/6000.0/script-reference/unityengine/guiutility/alignrecttodevice.md#alignrecttodevice\(rect-int-int\))
* [GUIUtility.GetControlID(FocusType)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(focustype\))
* [GUIUtility.GetControlID(GUIContent, FocusType)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(guicontent-focustype\))
* [GUIUtility.GetControlID(FocusType, Rect)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(focustype-rect\))
* [GUIUtility.GetControlID(GUIContent, FocusType, Rect)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(guicontent-focustype-rect\))
* [GUIUtility.GetControlID(int, FocusType)](/engine/6000.0/script-reference/unityengine/guiutility/getcontrolid.md#getcontrolid\(int-focustype\))
* [GUIUtility.GetStateObject(Type, int)](/engine/6000.0/script-reference/unityengine/guiutility/getstateobject.md)
* [GUIUtility.QueryStateObject(Type, int)](/engine/6000.0/script-reference/unityengine/guiutility/querystateobject.md)
* [GUIUtility.ExitGUI()](/engine/6000.0/script-reference/unityengine/guiutility/exitgui.md)
* [GUIUtility.GUIToScreenPoint(Vector2)](/engine/6000.0/script-reference/unityengine/guiutility/guitoscreenpoint.md)
* [GUIUtility.GUIToScreenRect(Rect)](/engine/6000.0/script-reference/unityengine/guiutility/guitoscreenrect.md)
* [GUIUtility.ScreenToGUIPoint(Vector2)](/engine/6000.0/script-reference/unityengine/guiutility/screentoguipoint.md)
* [GUIUtility.ScreenToGUIRect(Rect)](/engine/6000.0/script-reference/unityengine/guiutility/screentoguirect.md)
* [GUIUtility.RotateAroundPivot(float, Vector2)](/engine/6000.0/script-reference/unityengine/guiutility/rotatearoundpivot.md)
* [GUIUtility.ScaleAroundPivot(Vector2, Vector2)](/engine/6000.0/script-reference/unityengine/guiutility/scalearoundpivot.md)
* [GUIUtility.AlignRectToDevice(Rect)](/engine/6000.0/script-reference/unityengine/guiutility/alignrecttodevice.md#alignrecttodevice\(rect\))
* [GUIUtility.hasModalWindow](/engine/6000.0/script-reference/unityengine/guiutility/hasmodalwindow.md)
* [GUIUtility.hotControl](/engine/6000.0/script-reference/unityengine/guiutility/hotcontrol.md)
* [GUIUtility.keyboardControl](/engine/6000.0/script-reference/unityengine/guiutility/keyboardcontrol.md)
