void ModalPopup() { // Get custom struct from manager var data = m_PopUpManager.GetModalPopUpData(); // The dialog modal is a bit more complex. // Title + text like the big tooltip data.title = "Alert"; data.text = "This needs user confirmation"; // Button and callback configuration data.positiveText = "Ok"; data.positiveCallback = PositiveAction; // Negative button optional bool hasNegativeAction = Random.value > 0.5f; if (hasNegativeAction) { data.negativeText = "No, thanks"; data.negativeCallback = NegativeAction; } m_PopUpManager.DisplayModalPopUp(data); }