# CoppaDrawer

> A container that fetches the UIElements that draw the COPPA compliance UI and subscribes to its events.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Connect](/engine/6000.5/script-reference/unityeditor/connect.md)
* **Assembly:** UnityEditor
* **Implements:** [IProjectEditorDrawer](/engine/6000.5/script-reference/unityeditor/connect/iprojecteditordrawer.md), [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public class CoppaDrawer : IProjectEditorDrawer, IDisposable
```

## Constructors

| Constructor                                                                              | Description                                                                                                             |
| ---------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [CoppaDrawer()](/engine/6000.5/script-reference/unityeditor/connect/coppadrawer/ctor.md) | The default constructor for the COPPA UI drawer that subscribes to the callback events for the Cancel and Save buttons. |

## Methods

| Method                                                                                                  | Description                                      |
| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [Dispose](/engine/6000.5/script-reference/unityeditor/connect/coppadrawer/dispose.md)                   | Disposes of the UI.                              |
| [GetVisualElement](/engine/6000.5/script-reference/unityeditor/connect/coppadrawer/getvisualelement.md) | A method that retrieves the Coppa compliance UI. |

## Events

| Member                                                                                                              | Description                                                                               |
| ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [exceptionCallback](/engine/6000.5/script-reference/unityeditor/connect/coppadrawer/exceptioncallback.md)           | An event that fires when an exception is thrown within the COPPA Compliance UI.           |
| [stateChangeButtonFired](/engine/6000.5/script-reference/unityeditor/connect/coppadrawer/statechangebuttonfired.md) | An event that fires when any button causes a state change within the COPPA compliance UI. |
