# ToString()

> Returns a readable string describing this key.

## Definition

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

```csharp
public override string ToString()
```

### Returns

| Type                                                           | Description                              |
| -------------------------------------------------------------- | ---------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A human-readable description of the key. |

### Remarks

Formats the address, the sub-asset name in square brackets when present, and the type name in parentheses. An invalid key uses \\\<invalid\\> in place of the address. Intended for debugging and logging.

Log a sub-asset key for debugging.

### Examples

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

namespace Unity.Localization.Samples
{
    public class AssetKeyToStringExample
    {
        public void Run()
        {
            var key = new AssetKey("UI/Atlas", typeof(Sprite), "Settings");

            Debug.Log(key.ToString());   // UI/Atlas[Settings] (Sprite)
        }
    }
}
```
