---
title: TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, out Glyph)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/lowlevel/fontengine/trygetglyphwithindexvalue
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/lowlevel/fontengine/trygetglyphwithindexvalue.md
last_updated: 2026-10-07
generated_at: 2026-11-10T16:18:29.711Z
locale: en-us
---

# TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, out Glyph)

> Try loading the glyph for the given index value and if available populate the glyph.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.TextCore.LowLevel](/engine/7000.0/script-reference/unityengine/textcore/lowlevel.md)
* **Assembly:** UnityEngine.TextCoreFontEngineModule

## TryGetGlyphWithIndexValue(uint, GlyphLoadFlags, Glyph)

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

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The index of the glyph that should be loaded.**** (\[GlyphLoadFlags]\(/engine/7000.0/script-reference/unityengine/textcore/lowlevel/glyphloadflags)): The glyph loading flag that should be used to load the glyph.**** (\[Glyph]\(/engine/7000.0/script-reference/unityengine/textcore/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](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if a glyph exists at the given index. Otherwise returns false. |
