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

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

Description

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.