# ResolveKeyName(SharedTableData)

> Resolves this reference to a key name using the given shared table data.

## Definition

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

```csharp
public string ResolveKeyName(SharedTableData sharedData)
```

### Parameters

**** (\[SharedTableData]\(/engine/6000.7/script-reference/unity/localization/sharedtabledata)): The shared table data to resolve the key against.

### Returns

| Type                                                           | Description                                                           |
| -------------------------------------------------------------- | --------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The resolved key text, or null when the reference cannot be resolved. |

### Remarks

When the reference already holds key text, that text is returned directly. When it holds a key id, the name is looked up in `sharedData`. Returns null when the reference is empty, or when the id is not present in `sharedData`.

Resolve an entry reference to its human-readable key text.

### Examples

```csharp
using Unity.Localization;

namespace Unity.Localization.Samples
{
    public class TableEntryReferenceResolveKeyNameExample
    {
        public string Run(TableEntryReference entryReference, SharedTableData sharedData)
            => entryReference.ResolveKeyName(sharedData);
    }
}
```
