ドキュメント

Unity Engine

Unity Engine

GlyphRect

A rectangle that defines the position of a glyph within an atlas texture.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct GlyphRect : IEquatable<GlyphRect>

Constructors

Constructor

Description

GlyphRect(System.Int32,System.Int32,System.Int32,System.Int32)Constructor for a new GlyphRect.
GlyphRect(UnityEngine.Rect)Constructor for a new GlyphRect.

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.

Static Properties

Property

Description

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