# SharedTableData.SharedTableEntry

> A single key in the shared data, pairing the key text with its stable id.

## Definition

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

```csharp
public sealed class SharedTableData.SharedTableEntry
```

## Remarks

Each entry carries the key's id, its text, the per-key [SharedEntryFlags](/engine/6000.7/script-reference/unity/localization/sharedentryflags.md), and a [MetadataCollection](/engine/6000.7/script-reference/unity/localization/metadatacollection.md) shared across every locale. Obtain one from [SharedTableData.GetEntry](/engine/6000.7/script-reference/unity/localization/sharedtabledata/getentry.md) or [SharedTableData.AddKey](/engine/6000.7/script-reference/unity/localization/sharedtabledata/addkey.md) rather than constructing it directly, so the owning [SharedTableData](/engine/6000.7/script-reference/unity/localization/sharedtabledata.md) keeps its id and key lookups in sync.

Additional Resources: [SharedTableData](/engine/6000.7/script-reference/unity/localization/sharedtabledata.md), [SharedEntryFlags](/engine/6000.7/script-reference/unity/localization/sharedentryflags.md), [MetadataCollection](/engine/6000.7/script-reference/unity/localization/metadatacollection.md)

Read the id, key, and flags from an entry.

## Examples

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

namespace Unity.Localization.Samples
{
    public class SharedTableEntryOverviewExample
    {
        public void Run()
        {
            var sharedData = ScriptableObject.CreateInstance<SharedTableData>();
            SharedTableData.SharedTableEntry entry = sharedData.AddKey("GREETING");
            entry.IsSmart = true;

            Debug.Log(entry.Id);
            Debug.Log(entry.Key);     // GREETING
            Debug.Log(entry.Flags);   // Smart
        }
    }
}
```

## Properties

| Property                                                                                                    | Description                                        |
| ----------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [Flags](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/flags.md)       | Per-key flags shared across every locale.          |
| [Id](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/id.md)             | The stable id of the key.                          |
| [IsSmart](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/issmart.md)   | Whether the key's string values are Smart Strings. |
| [Key](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/key.md)           | The key text.                                      |
| [Metadata](/engine/6000.7/script-reference/unity/localization/sharedtabledata/sharedtableentry/metadata.md) | Metadata attached to the key across every locale.  |
