---
title: TryGetGlyphIndex(uint, out uint)
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/trygetglyphindex
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/lowlevel/fontengine/trygetglyphindex.md
last_updated: 2026-10-07
generated_at: 2026-11-11T17:36:54.822Z
locale: en-us
---

# TryGetGlyphIndex(uint, out uint)

> Try to get the glyph index for the character at the given Unicode value.

## Definition

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

## TryGetGlyphIndex(uint, uint)

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

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): The unicode value of the character for which to lookup the glyph index.**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): 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                                          |
| ------------------------------------------------------------- | ---------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the given unicode has a glyph index. |
