# ProjectBindDrawer

> A container that fetches the UIElements that draw the Project Binding UI, and subscribes to its events.

## Definition

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

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

## Constructors

| Constructor                                                                                          | Description                                                                                                    |
| ---------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| [ProjectBindDrawer()](/engine/6000.7/script-reference/unityeditor/connect/projectbinddrawer/ctor.md) | The default constructor for the Drawer that subscribes to the callback events for the Link and Create buttons. |

## Methods

| Method                                                                                                        | Description                   |
| ------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [Dispose](/engine/6000.7/script-reference/unityeditor/connect/projectbinddrawer/dispose.md)                   | Disposes of the UI.           |
| [GetVisualElement](/engine/6000.7/script-reference/unityeditor/connect/projectbinddrawer/getvisualelement.md) | Retrieves the ProjectBind UI. |

## Events

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