# GetConsentState()

> Retrieves the current consent state of the user.

## Definition

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

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

### Returns

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