# EditorDialog

> A collection of static methods to show modal dialog boxes.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.6/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public sealed class EditorDialog
```

## Remarks

Examples of dialogs that can be created:

![DisplayAlertDialogExample (EditorDialog)](/api/media?file=/engine/6000.6/media/images/DisplayAlertDialogExample.png)

![DisplayDecisionDialogSimpleExample (EditorDialog)](/api/media?file=/engine/6000.6/media/images/DisplayDecisionDialogSimpleExample.png)

![DisplayDecisionDialogWithOptOutExample (EditorDialog)](/api/media?file=/engine/6000.6/media/images/DisplayDecisionDialogWithOptOutExample.png)

![DisplayComplexDecisionDialogWithOptOutExample (EditorDialog)](/api/media?file=/engine/6000.6/media/images/DisplayComplexDecisionDialogWithOptOutExample.png).

## Static Methods

| Method                                                                                                                                       | Description                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| [DisplayAlertDialog](/engine/6000.6/script-reference/unityeditor/editordialog/displayalertdialog.md)                                         | Displays a simple alert dialog box with a title, an icon, a message, and a single button.                   |
| [DisplayAlertDialogWithOptOut](/engine/6000.6/script-reference/unityeditor/editordialog/displayalertdialogwithoptout.md)                     | Displays a simple alert dialog box with a title, icon, message, a button, and an opt-out checkbox.          |
| [DisplayComplexDecisionDialog](/engine/6000.6/script-reference/unityeditor/editordialog/displaycomplexdecisiondialog.md)                     | Displays a complex decision dialog box with a title, icon, message, and three buttons.                      |
| [DisplayComplexDecisionDialogWithOptOut](/engine/6000.6/script-reference/unityeditor/editordialog/displaycomplexdecisiondialogwithoptout.md) | Displays a complex decision dialog box with a title, icon, message, three buttons, and an opt-out checkbox. |
| [DisplayDecisionDialog](/engine/6000.6/script-reference/unityeditor/editordialog/displaydecisiondialog.md)                                   | Displays a decision dialog box with a title, icon, message, and two buttons.                                |
| [DisplayDecisionDialogWithOptOut](/engine/6000.6/script-reference/unityeditor/editordialog/displaydecisiondialogwithoptout.md)               | Displays a decision dialog box with a title, icon, message, two buttons, and an opt-out checkbox.           |
