Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GlyphRect

A rectangle that defines the position of a glyph within an atlas texture.
Read time 1 minuteLast updated 6 days ago

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).