# DialogEventInfo

> Information about a modal dialog's shape at the moment it displays.

## Definition

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

```csharp
public readonly struct DialogEventInfo
```

## Fields

| Value                                                                                       | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [ButtonLabels](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/buttonlabels.md) | The dialog's button labels, in display order, when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.NativeMessageBox](/engine/6000.7/script-reference/unityeditor/dialogsource/nativemessagebox.md); null when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.ManagedCustomWindow](/engine/6000.7/script-reference/unityeditor/dialogsource/managedcustomwindow.md). Backed by a private copy, so it can't be mutated by a subscriber. |
| [Id](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/id.md)                     | Unique identifier for this dialog occurrence, stable from when it's raised until it's dismissed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [Level](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/level.md)               | The severity level of the dialog, such as Info, Warning, or Error when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.NativeMessageBox](/engine/6000.7/script-reference/unityeditor/dialogsource/nativemessagebox.md); null when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.ManagedCustomWindow](/engine/6000.7/script-reference/unityeditor/dialogsource/managedcustomwindow.md).                                               |
| [Message](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/message.md)           | The dialog's body text when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.NativeMessageBox](/engine/6000.7/script-reference/unityeditor/dialogsource/nativemessagebox.md); null when [DialogEventInfo.Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md) is [DialogSource.ManagedCustomWindow](/engine/6000.7/script-reference/unityeditor/dialogsource/managedcustomwindow.md).                                                                                          |
| [OpenedAtUtc](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/openedatutc.md)   | UTC time at which the dialog was about to be shown.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Source](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/source.md)             | The mechanism that produced this dialog.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Title](/engine/6000.7/script-reference/unityeditor/dialogeventinfo/title.md)               | The text shown in the dialog's title bar.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
