# IconContent(string, string)

> Fetch the GUIContent from the Unity builtin resources with the given name.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static GUIContent IconContent(string name, string text)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the desired icon.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Tooltip for hovering over the icon.

### Returns

| Type                                                                    | Description |
| ----------------------------------------------------------------------- | ----------- |
| [GUIContent](/engine/6000.6/script-reference/unityengine/guicontent.md) |             |

### Remarks

[EditorGUIUtility.IconContent](/engine/6000.6/script-reference/unityeditor/editorguiutility/iconcontent.md) is used to create a [GUIContent](/engine/6000.6/script-reference/unityengine/guicontent.md) for a GUI element.  Only icons are loaded.  Typically the icon from `Assets/Editor Default Resources/Icons` is fetched using the first argument. Only the name of the icon, without the png extension is needed.

The second argument provides the text for a hovering tooltip.  This string needs to start with a vertical bar "**|**" character to flag it as a tooltip.

**Note:** The hovering over the tooltip cannot currently be positioned.
