SpriteGlyph
Constructor for new sprite glyph.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.TextCore.Text
- Assembly: UnityEngine.TextCoreTextEngineModule
SpriteGlyph()
Constructor for new sprite glyph.
public SpriteGlyph()
SpriteGlyph(uint, GlyphMetrics, GlyphRect, float, int)
Constructor for new sprite glyph.
public SpriteGlyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect, float scale, int atlasIndex)
Parameters
Index of the sprite glyph.
Metrics which define the position of the glyph in the context of text layout.
GlyphRect which defines the coordinates of the glyph in the atlas texture.
Scale of the glyph.
Index of the atlas texture that contains the glyph.
SpriteGlyph(uint, GlyphMetrics, GlyphRect, float, int, Sprite)
Constructor for new sprite glyph.
public SpriteGlyph(uint index, GlyphMetrics metrics, GlyphRect glyphRect, float scale, int atlasIndex, Sprite sprite)
Parameters
Index of the sprite glyph.
Metrics which define the position of the glyph in the context of text layout.
GlyphRect which defines the coordinates of the glyph in the atlas texture.
Scale of the glyph.
Index of the atlas texture that contains the glyph.
A reference to the Unity Sprite representing this sprite glyph.