DialogEventInfo
Information about a modal dialog's shape at the moment it displays.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Struct
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public readonly struct DialogEventInfo
Fields
Value | Description |
|---|---|
| ButtonLabels | The dialog's button labels, in display order, when DialogEventInfo.Source is DialogSource.NativeMessageBox; null when DialogEventInfo.Source is DialogSource.ManagedCustomWindow. Backed by a private copy, so it can't be mutated by a subscriber. |
| Id | Unique identifier for this dialog occurrence, stable from when it's raised until it's dismissed. |
| Level | The severity level of the dialog, such as Info, Warning, or Error when DialogEventInfo.Source is DialogSource.NativeMessageBox; null when DialogEventInfo.Source is DialogSource.ManagedCustomWindow. |
| Message | The dialog's body text when DialogEventInfo.Source is DialogSource.NativeMessageBox; null when DialogEventInfo.Source is DialogSource.ManagedCustomWindow. |
| OpenedAtUtc | UTC time at which the dialog was about to be shown. |
| Source | The mechanism that produced this dialog. |
| Title | The text shown in the dialog's title bar. |