# SetConsentState(ConsentState)

> Updates the 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 void SetConsentState(ConsentState consentState)
```

### Parameters

**** (\[ConsentState]\(/engine/6000.7/script-reference/unityengine/unityconsent/consentstate)): The new [ConsentState](/engine/6000.7/script-reference/unityengine/unityconsent/consentstate.md) to set.
