# GetConsentState()

> Retrieves the current consent state of the user.

## Definition

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

```csharp
public static ConsentState GetConsentState()
```

### Returns

| Type                                                                                     | Description                                                                                                       |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| [ConsentState](/engine/6000.7/script-reference/unityengine/unityconsent/consentstate.md) | The current [ConsentState](/engine/6000.7/script-reference/unityengine/unityconsent/consentstate.md) of the user. |
