文档

Unity Engine

Unity Engine

TryGetGlyphIndex(uint, out uint)

Try to get the glyph index for the character at the given Unicode value.
阅读时间1 分钟最后更新于 1 个月前

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.