# ToString

> Returns a string representation of this EntityId.

## Definition

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

## ToString()

Returns a string representation of this EntityId.

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

### Returns

| Type                                                           | Description                             |
| -------------------------------------------------------------- | --------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string that represents this EntityId. |

## ToString(string)

Returns a formatted string representation of this EntityId.

```csharp
public string ToString(string format)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A format string.

### Returns

| Type                                                           | Description                                       |
| -------------------------------------------------------------- | ------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A formatted string that represents this EntityId. |

## ToString(string, IFormatProvider)

Returns a string representation of this EntityId.

```csharp
public string ToString(string format, IFormatProvider formatProvider)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[IFormatProvider]\(https\://learn.microsoft.com/dotnet/api/system.iformatprovider)):&#x20;

### Returns

| Type                                                           | Description                             |
| -------------------------------------------------------------- | --------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string that represents this EntityId. |
