Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GlyphRect

Constructor for a new GlyphRect.
Read time 1 minuteLast updated 6 days ago

Definition

GlyphRect(int, int, int, int)

Constructor for a new GlyphRect.
public GlyphRect(int x, int y, int width, int height)

Parameters

The x position of the glyph in the atlas texture.

The y position of the glyph in the atlas texture.

width

The width of the glyph.

height

The height of the glyph.

GlyphRect(Rect)

Constructor for a new GlyphRect.
public GlyphRect(Rect rect)

Parameters

rect

The Rect used to construct the new GlyphRect.