# GUIElement

> Base class for images & text strings displayed in a GUI.

## Definition

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

> **Warning:**
>
> **Removed.** GUIElement has been removed. Consider using [https://docs.unity3d.com/ScriptReference/UIElements.Image.html](https://docs.unity3d.com/ScriptReference/UIElements.Image.html), [https://docs.unity3d.com/ScriptReference/UIElements.TextElement.html](https://docs.unity3d.com/ScriptReference/UIElements.TextElement.html) or TextMeshPro instead.

```csharp
[ExcludeFromObjectFactory]
public sealed class GUIElement
```

## Remarks

This class holds the base functionality for any GUI elements.
