# ToString()

> Returns a string representation of the consent state.

## Definition

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

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

### Returns

| Type                                                           | Description                                                 |
| -------------------------------------------------------------- | ----------------------------------------------------------- |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | A string describing the Ads and Analytics consent statuses. |
