文档

Unity Engine

Unity Engine

TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, out Glyph)

Try loading the glyph for the given index value and if available populate the glyph.
阅读时间1 分钟最后更新于 1 个月前

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.