# GetTable()

> Returns the table synchronously if it is already loaded.

## Definition

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

```csharp
public ResourceTable GetTable()
```

### Returns

| Type                                                                                 | Description                                                         |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| [ResourceTable](/engine/6000.7/script-reference/unity/localization/resourcetable.md) | The resolved table, or null when it is not available synchronously. |

### Remarks

Does not trigger a load. The result is null when the table is not loaded yet, the reference is empty, or no resource database is configured. Use [LocalizedTable.GetTableAsync](/engine/6000.7/script-reference/unity/localization/localizedtable/gettableasync.md) to load the table on demand instead.

Read an already-loaded table.

### Examples

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

namespace Unity.Localization.Samples
{
    public class LocalizedTableGetTableExample
    {
        public void Read()
        {
            var localizedTable = new LocalizedTable();
            localizedTable.TableReference = "My Strings";
            ResourceTable table = localizedTable.GetTable();
            if (table != null)
                Debug.Log(table.name);
        }
    }
}
```
