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
- Type: Method
- Namespace: UnityEngine.TextCore.LowLevel
- Assembly: UnityEngine.TextCoreFontEngineModule
TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, Glyph)
public static bool TryGetGlyphWithIndexValue(uint glyphIndex, GlyphLoadFlags flags, out Glyph glyph)
Parameters
The index of the glyph that should be loaded.
The glyph loading flag that should be used to load the glyph.
The glyph using the provided index or the .notdef glyph (index 0) if no glyph was found at that index.
Returns
Type | Description |
|---|---|
| bool | Returns true if a glyph exists at the given index. Otherwise returns false. |