# DialogSource

> Options for identifying which mechanism produced a DialogEventInfo.

## Definition

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

```csharp
public enum DialogSource
```

## Fields

| Value                                                                                                  | Description                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ManagedCustomWindow](/engine/6000.7/script-reference/unityeditor/dialogsource/managedcustomwindow.md) | A custom [EditorWindow](/engine/6000.7/script-reference/unityeditor/editorwindow.md) shown using [EditorWindow.ShowModal()](/engine/6000.7/script-reference/unityeditor/editorwindow/showmodal.md) or [EditorWindow.ShowModalUtility()](/engine/6000.7/script-reference/unityeditor/editorwindow/showmodalutility.md). Opaque; the content is unknown. |
| [NativeMessageBox](/engine/6000.7/script-reference/unityeditor/dialogsource/nativemessagebox.md)       | A native dialog, such as the [EditorUtility.DisplayDialog](/engine/6000.7/script-reference/unityeditor/editorutility/displaydialog.md) family or a native-originated alert. Carries full structured content.                                                                                                                                           |
