# SpriteGlyph

> The visual representation of the sprite character using this glyph.

## Definition

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

```csharp
public class SpriteGlyph : Glyph
```

## Fields

| Value                                                                                     | Description                                                               |
| ----------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [sprite](/engine/6000.7/script-reference/unityengine/textcore/text/spriteglyph/sprite.md) | An optional reference to the underlying sprite used to create this glyph. |

## Constructors

| Constructor                                                                                                                                                                                                                                                                            | Description                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [SpriteGlyph()](/engine/6000.7/script-reference/unityengine/textcore/text/spriteglyph/ctor.md#spriteglyph\(\))                                                                                                                                                                         | Constructor for new sprite glyph. |
| [SpriteGlyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32)](/engine/6000.7/script-reference/unityengine/textcore/text/spriteglyph/ctor.md#spriteglyph\(uint-glyphmetrics-glyphrect-float-int\))                           | Constructor for new sprite glyph. |
| [SpriteGlyph(System.UInt32,UnityEngine.TextCore.GlyphMetrics,UnityEngine.TextCore.GlyphRect,System.Single,System.Int32,UnityEngine.Sprite)](/engine/6000.7/script-reference/unityengine/textcore/text/spriteglyph/ctor.md#spriteglyph\(uint-glyphmetrics-glyphrect-float-int-sprite\)) | Constructor for new sprite glyph. |

## Inheritance

**Inherited Members:**

* [Glyph.Compare(Glyph)](/engine/6000.7/script-reference/unityengine/textcore/glyph/compare.md)
* [Glyph.index](/engine/6000.7/script-reference/unityengine/textcore/glyph/index.md)
* [Glyph.metrics](/engine/6000.7/script-reference/unityengine/textcore/glyph/metrics.md)
* [Glyph.glyphRect](/engine/6000.7/script-reference/unityengine/textcore/glyph/glyphrect.md)
* [Glyph.scale](/engine/6000.7/script-reference/unityengine/textcore/glyph/scale.md)
* [Glyph.atlasIndex](/engine/6000.7/script-reference/unityengine/textcore/glyph/atlasindex.md)
* [Glyph.classDefinitionType](/engine/6000.7/script-reference/unityengine/textcore/glyph/classdefinitiontype.md)
