EditorUtility.DisplayDialog Manual     Reference     Scripting  
Scripting > Editor Classes > EditorUtility

static function DisplayDialog (title : string, message : string, ok : string, cancel : string = "") : bool


Displays a modal dialog.

Use it for displaying message boxes in the editor.

ok and cancel are labels to be displayed on the dialog buttons. If cancel is empty (the default), then only one button is displayed. DisplayDialog returns true if ok button is pressed.

See Also: DisplayDialogComplex function.