GlyphRect

struct in UnityEngine.TextCore

Description

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

Static Properties

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

Properties

Property 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

Constructor Description
GlyphRectConstructor for a new GlyphRect.

Did you find this page useful? Please give it a rating: