GlyphRect
A rectangle that defines the position of a glyph within an atlas texture.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.TextCore
- Assembly: UnityEngine.TextCoreFontEngineModule
- Implements: IEquatable<GlyphRect>
public struct GlyphRect : IEquatable<GlyphRect>
Constructors
Constructor | Description |
|---|---|
| GlyphRect(System.Int32,System.Int32,System.Int32,System.Int32) | Constructor for a new GlyphRect. |
| GlyphRect(UnityEngine.Rect) | Constructor for a new GlyphRect. |
Properties
Property | Description |
|---|---|
| height | The height of the glyph. |
| width | The width of the glyph. |
| x | The x position of the glyph in the font atlas texture. |
| y | The y position of the glyph in the font atlas texture. |
Static Properties
Property | Description |
|---|---|
| zero | A GlyphRect with all values set to zero. Shorthand for writing GlyphRect(0, 0, 0, 0). |