GlyphRect

struct in UnityEngine.TextCore

Description

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

Static Properties

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

Properties

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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答