# GUIContent

> The contents of a GUI element.

## Definition

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

```csharp
public class GUIContent
```

## Remarks

This works closely in relation with [GUIStyle](/engine/6000.7/script-reference/unityengine/guistyle.md). GUIContent defines `what` to render and [GUIStyle](/engine/6000.7/script-reference/unityengine/guistyle.md) defines `how` to render it.

Additional Resources: [GUIStyle](/engine/6000.7/script-reference/unityengine/guistyle.md)

## Static Fields

| Value                                                                  | Description                  |
| ---------------------------------------------------------------------- | ---------------------------- |
| [none](/engine/6000.7/script-reference/unityengine/guicontent/none.md) | Shorthand for empty content. |

## Constructors

| Constructor                                                                                                                                                       | Description                                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GUIContent()](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(\))                                                                     | Constructor for GUIContent in all shapes and sizes.                                                                                                                                                                                       |
| [GUIContent(System.String)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(string\))                                                  | Build a GUIContent object containing only text.                                                                                                                                                                                           |
| [GUIContent(System.String,System.String)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(string-string\))                             | Build a GUIContent containing some `text`. When the user hovers the mouse over it, the global [\_tooltip](/engine/6000.7/script-reference/unityengine/gui/tooltip.md) is set to the `tooltip`.                                            |
| [GUIContent(System.String,UnityEngine.Texture)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(string-texture\))                      | Build a GUIContent object containing both `text` and an image.                                                                                                                                                                            |
| [GUIContent(System.String,UnityEngine.Texture,System.String)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(string-texture-string\)) | Build a GUIContent that contains both `text`, an `image` and has a `tooltip` defined. When the user hovers the mouse over it, the global [\_tooltip](/engine/6000.7/script-reference/unityengine/gui/tooltip.md) is set to the `tooltip`. |
| [GUIContent(UnityEngine.GUIContent)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(guicontent\))                                     | Build a GUIContent as a copy of another GUIContent.                                                                                                                                                                                       |
| [GUIContent(UnityEngine.Texture)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(texture\))                                           | Build a GUIContent object containing only an image.                                                                                                                                                                                       |
| [GUIContent(UnityEngine.Texture,System.String)](/engine/6000.7/script-reference/unityengine/guicontent/ctor.md#guicontent\(texture-string\))                      | Build a GUIContent containing an image. When the user hovers the mouse over it, the global [\_tooltip](/engine/6000.7/script-reference/unityengine/gui/tooltip.md) is set to the `tooltip`.                                               |

## Properties

| Property                                                                     | Description                  |
| ---------------------------------------------------------------------------- | ---------------------------- |
| [image](/engine/6000.7/script-reference/unityengine/guicontent/image.md)     | The icon image contained.    |
| [text](/engine/6000.7/script-reference/unityengine/guicontent/text.md)       | The text contained.          |
| [tooltip](/engine/6000.7/script-reference/unityengine/guicontent/tooltip.md) | The tooltip of this element. |
