# ToString()

> Convert a Hash128 to string.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

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

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) |             |

### Remarks

This creates a string that is 32 characters long. Each of the 16 hash bytes is represented as two hexadecimal characters.

```csharp
using UnityEngine;

public class ExampleScript : MonoBehaviour
{
    void Start()
    {
        var hash = new Hash128(0x01020304, 0xaabbccdd, 0x12345678, 0xbaadc0de);
        // prints "04030201ddccbbaa78563412dec0adba",
        // because the hash values are in little-endian byte order
        Debug.Log(hash.ToString());
    }
}
```

Additional Resources: [Hash128.Parse](/engine/6000.0/script-reference/unityengine/hash128/parse.md).
