# GetEntryAsync(TableReference, TableEntryReference, Locale, CancellationToken, bool)

> Resolves an entry, following the locale fallback chain when the entry is missing or empty.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Localization](/engine/6000.7/script-reference/unity/localization.md)
* **Assembly:** UnityEngine.LocalizationRuntimeModule

```csharp
public Awaitable<IResourceEntry> GetEntryAsync(TableReference tableRef, TableEntryReference entryRef, Locale locale = null, CancellationToken cancellationToken = default, bool enableFallback = true)
```

### Parameters

**** (\[TableReference]\(/engine/6000.7/script-reference/unity/localization/tablereference)): The reference to the table collection that holds the entry.**** (\[TableEntryReference]\(/engine/6000.7/script-reference/unity/localization/tableentryreference)): The reference to the entry to resolve within the table.**** (\[Locale]\(/engine/6000.7/script-reference/unity/localization/locale)): The locale to resolve in; null uses the selected locale.**** (\[CancellationToken]\(https\://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken)): The token that cancels the load operation.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to walk the locale fallback chain when the locale has no usable value.

### Returns

| Type                                                                                   | Description                                                                                    |
| -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [Awaitable\<IResourceEntry>](/engine/6000.7/script-reference/unityengine/awaitable.md) | The resolved entry, or null when neither the locale nor its fallback chain has a usable value. |

### Remarks

The entry loads through the provider chain. When the requested locale has no usable value, resolution walks the fallback chain defined by [Locale.FallbackCode](/engine/6000.7/script-reference/unity/localization/locale/fallbackcode.md) until it finds a value or the chain ends. The result is a raw [IResourceEntry](/engine/6000.7/script-reference/unity/localization/iresourceentry.md); to get a formatted string or a loaded asset, use [ResourceDatabase.GetLocalizedStringAsync](/engine/6000.7/script-reference/unity/localization/resourcedatabase/getlocalizedstringasync.md) or [ResourceDatabase.GetLocalizedAssetAsync](/engine/6000.7/script-reference/unity/localization/resourcedatabase/getlocalizedassetasync.md) instead.

Resolves an entry and reads it when it is a string entry.

### Examples

```csharp
using Unity.Localization;
using UnityEngine;

namespace Unity.Localization.Samples
{
    public class GetEntryAsyncExample : MonoBehaviour
    {
        async void Start()
        {
            IResourceEntry entry = await LocalizationSettings.ResourceDatabase.GetEntryAsync("UI Text", "hello");
            if (entry is IStringEntry stringEntry)
                Debug.Log(stringEntry.Value);
        }
    }
}
```
