# SpriteGlyph

> Constructor for new sprite glyph.

## Definition

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

## SpriteGlyph()

Constructor for new sprite glyph.

```csharp
public SpriteGlyph()
```

## SpriteGlyph(uint, GlyphMetrics, GlyphRect, float, int)

Constructor for new sprite glyph.

```csharp
public SpriteGlyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect, float scale, int atlasIndex)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Index of the sprite glyph.**** (\[GlyphMetrics]\(/engine/6000.7/script-reference/unityengine/textcore/glyphmetrics)): Metrics which define the position of the glyph in the context of text layout.**** (\[GlyphRect]\(/engine/6000.7/script-reference/unityengine/textcore/glyphrect)): GlyphRect which defines the coordinates of the glyph in the atlas texture.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Scale of the glyph.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the atlas texture that contains the glyph.

## SpriteGlyph(uint, GlyphMetrics, GlyphRect, float, int, Sprite)

Constructor for new sprite glyph.

```csharp
public SpriteGlyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect, float scale, int atlasIndex, Sprite sprite)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): > Index of the sprite glyph.**** (\[GlyphMetrics]\(/engine/6000.7/script-reference/unityengine/textcore/glyphmetrics)): Metrics which define the position of the glyph in the context of text layout.**** (\[GlyphRect]\(/engine/6000.7/script-reference/unityengine/textcore/glyphrect)): GlyphRect which defines the coordinates of the glyph in the atlas texture.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Scale of the glyph.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Index of the atlas texture that contains the glyph.**** (\[Sprite]\(/engine/6000.7/script-reference/unityengine/sprite)): A reference to the Unity Sprite representing this sprite glyph.
