# TextElement

> Base class for all text elements like Character and SpriteCharacter.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.TextCore.Text](/engine/6000.7/script-reference/unityengine/textcore/text.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

```csharp
public abstract class TextElement
```

## Properties

| Property                                                                                            | Description                                                  |
| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [elementType](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/elementtype.md) | The type of text element which can be a character or sprite. |
| [glyph](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/glyph.md)             | The glyph used by this text element.                         |
| [glyphIndex](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/glyphindex.md)   | The index of the glyph used by this text element.            |
| [scale](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/scale.md)             | The relative scale of the character.                         |
| [textAsset](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/textasset.md)     | The Text Asset to which this Text Element belongs.           |
| [unicode](/engine/6000.7/script-reference/unityengine/textcore/text/textelement/unicode.md)         | The unicode value (code point) of the character.             |
