# ToString()

> Returns the culture code for this identifier.

## Definition

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

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

### Returns

| Type                                                           | Description                                                             |
| -------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The culture code, or the empty string when the identifier is undefined. |

### Remarks

Returns the empty string for the undefined locale. Equivalent to reading [LocaleIdentifier.Code](/engine/6000.7/script-reference/unity/localization/localeidentifier/code.md).

Log the identifier's culture code.

### Examples

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

namespace Unity.Localization.Samples
{
    public class LocaleIdentifierToStringExample
    {
        public void Run(LocaleIdentifier identifier)
        {
            Debug.Log(identifier.ToString());
        }
    }
}
```
