GlyphRect

struct in UnityEngine.TextCore

Switch to Manual

Description

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

Static Variables

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

Variables

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

GlyphRectConstructor for a new GlyphRect.