Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

ButtonLabelsThe 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.
IdUnique identifier for this dialog occurrence, stable from when it's raised until it's dismissed.
LevelThe severity level of the dialog, such as Info, Warning, or Error when DialogEventInfo.Source is DialogSource.NativeMessageBox; null when DialogEventInfo.Source is DialogSource.ManagedCustomWindow.
MessageThe dialog's body text when DialogEventInfo.Source is DialogSource.NativeMessageBox; null when DialogEventInfo.Source is DialogSource.ManagedCustomWindow.
OpenedAtUtcUTC time at which the dialog was about to be shown.
SourceThe mechanism that produced this dialog.
TitleThe text shown in the dialog's title bar.