Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, out Glyph)

Try loading the glyph for the given index value and if available populate the glyph.
Read time 1 minuteLast updated 8 days ago

Definition

TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, Glyph)

public static bool TryGetGlyphWithIndexValue(uint glyphIndex, GlyphLoadFlags flags, out Glyph glyph)

Parameters

glyphIndex

The index of the glyph that should be loaded.

The glyph loading flag that should be used to load the glyph.

glyph

The glyph using the provided index or the .notdef glyph (index 0) if no glyph was found at that index.

Returns

Type

Description

boolReturns true if a glyph exists at the given index. Otherwise returns false.