Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetGlyphIndex(uint, out uint)

Try to get the glyph index for the character at the given Unicode value.
Read time 1 minuteLast updated 8 days ago

Definition

TryGetGlyphIndex(uint, uint)

public static bool TryGetGlyphIndex(uint unicode, out uint glyphIndex)

Parameters

unicode

The unicode value of the character for which to lookup the glyph index.

glyphIndex

The index of the glyph for the given unicode character or the .notdef glyph (index 0) if no glyph is available for the given Unicode value.

Returns

Type

Description

boolReturns true if the given unicode has a glyph index.