기술 자료

Unity Engine

Unity Engine

Glyph

A Glyph is the visual representation of a text element or character.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public class Glyph

Constructors

Properties

Property

Description

atlasIndexThe index of the atlas texture that contains this glyph.
classDefinitionTypeGlyph class definition type.
glyphRectA rectangle that defines the position of a glyph within an atlas texture.
indexThe index of the glyph in the source font file.
metricsThe metrics that define the size, position and spacing of a glyph when performing text layout.
scaleThe relative scale of the glyph. The default value is 1.0.

Methods

Method

Description

CompareCompares two glyphs to determine if they have the same values.