# ConsentState

> Represents the consent state of a user.

## Definition

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

```csharp
public struct ConsentState
```

## Fields

| Value                                                                                                       | Description                       |
| ----------------------------------------------------------------------------------------------------------- | --------------------------------- |
| [AdsIntent](/engine/6000.6/script-reference/unityengine/unityconsent/consentstate/adsintent.md)             | The consent status for Ads.       |
| [AnalyticsIntent](/engine/6000.6/script-reference/unityengine/unityconsent/consentstate/analyticsintent.md) | The consent status for Analytics. |

## Constructors

| Constructor                                                                                     | Description                                                                                                                                            |
| ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ConsentState()](/engine/6000.6/script-reference/unityengine/unityconsent/consentstate/ctor.md) | Initializes a new instance of the [ConsentState](/engine/6000.6/script-reference/unityengine/unityconsent/consentstate.md) struct with default values. |

## Methods

| Method                                                                                        | Description                                           |
| --------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| [ToString](/engine/6000.6/script-reference/unityengine/unityconsent/consentstate/tostring.md) | Returns a string representation of the consent state. |
