# GetEntry(TableReference, TableEntryReference, Locale, bool)

> Resolves an entry synchronously, following the fallback chain, or null when an async load is required.

## Definition

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

```csharp
public IResourceEntry GetEntry(TableReference tableRef, TableEntryReference entryRef, Locale locale = null, 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.**** (\[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                                                                         |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| [IResourceEntry](/engine/6000.7/script-reference/unity/localization/iresourceentry.md) | The resolved entry, or null when the table is not loaded or no usable value exists. |

### Remarks

This is the synchronous companion to [ResourceDatabase.GetEntryAsync](/engine/6000.7/script-reference/unity/localization/resourcedatabase/getentryasync.md). It resolves from tables already cached for the locale, and otherwise loads the table through any provider that implements [ISynchronousAssetProvider](/engine/6000.7/script-reference/unity/localization/providers/isynchronousassetprovider.md), following the [Locale.FallbackCode](/engine/6000.7/script-reference/unity/localization/locale/fallbackcode.md) chain. It returns null when the required table can only be loaded asynchronously and is not already cached.

Reads an entry that is already loaded.

### Examples

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

namespace Unity.Localization.Samples
{
    public class GetEntrySyncExample
    {
        public void Run()
        {
            IResourceEntry entry = LocalizationSettings.ResourceDatabase.GetEntry("UI Text", "hello");
            if (entry is IStringEntry stringEntry)
                Debug.Log(stringEntry.Value);
        }
    }
}
```
