Unity - Scripting API: EditorDialog
class in UnityEditor
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
A collection of static methods to show modal dialog boxes.
Examples of dialogs that can be created:



.
Static Methods
| Method | Description |
|---|---|
| DisplayAlertDialog | Displays a simple alert dialog box with a title, an icon, a message, and a single button. |
| DisplayAlertDialogWithOptOut | Displays a simple alert dialog box with a title, icon, message, a button, and an opt-out checkbox. |
| DisplayComplexDecisionDialog | Displays a complex decision dialog box with a title, icon, message, and three buttons. |
| DisplayComplexDecisionDialogWithOptOut | Displays a complex decision dialog box with a title, icon, message, three buttons, and an opt-out checkbox. |
| DisplayDecisionDialog | Displays a decision dialog box with a title, icon, message, and two buttons. |
| DisplayDecisionDialogWithOptOut | Displays a decision dialog box with a title, icon, message, two buttons, and an opt-out checkbox. |