Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

GlyphRect

struct in UnityEngine.TextCore

Description

A rectangle that defines the position of a glyph within an atlas texture.

Static Properties

Description
zeroA GlyphRect with all values set to zero. Shorthand for writing GlyphRect(0, 0, 0, 0).

Properties

Description
heightThe height of the glyph.
widthThe width of the glyph.
xThe x position of the glyph in the font atlas texture.
yThe y position of the glyph in the font atlas texture.

Constructors

Description
GlyphRectConstructor for a new GlyphRect.