internal static void ShowDialog(string title, string message, DialogButton buttonOk) { if (EditorUtility.DisplayDialog(title, message, buttonOk.title)) { buttonOk.PerformAction(); } }
internal static void ShowDialog(string title, string message, DialogButton buttonOk, DialogButton buttonCancel, DialogButton buttonAlt) { int choice = EditorUtility.DisplayDialogComplex(title, message, buttonOk.title, buttonCancel.title, buttonAlt.title); switch (choice) { case 0: buttonOk.PerformAction(); break; case 1: buttonCancel.PerformAction(); break; case 2: buttonAlt.PerformAction(); break; } }
internal static void ShowDialog(string title, string message, DialogButton buttonOk, DialogButton buttonCancel) { if (EditorUtility.DisplayDialog(title, message, buttonOk.title, buttonCancel.title)) { buttonOk.PerformAction(); } else { buttonCancel.PerformAction(); } }