# EndUserConsent

> Provides methods and events to manage and track the user's consent state.

## Definition

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

```csharp
public static class EndUserConsent
```

## Static Methods

| Method                                                                                                        | Description                                      |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [GetConsentState](/engine/6000.5/script-reference/unityengine/unityconsent/enduserconsent/getconsentstate.md) | Retrieves the current consent state of the user. |
| [SetConsentState](/engine/6000.5/script-reference/unityengine/unityconsent/enduserconsent/setconsentstate.md) | Updates the consent state of the user.           |

## Static Events

| Member                                                                                                                | Description                                        |
| --------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------- |
| [consentStateChanged](/engine/6000.5/script-reference/unityengine/unityconsent/enduserconsent/consentstatechanged.md) | Occurs when the consent state of the user changes. |
