Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ ShowAlert() [2/2]

static void ShowAlert ( string title,
string message,
GamebaseCallback::VoidDelegate buttonCallback )
static

This method to create the dialog and display it on screen.

Show Alert View with async completion callback.

Since
Added 1.4.0.
Parameters
titleThe title to be shown in the alert.
messageThe message to be shown in the alert.
buttonCallbackThe buttonCallback to be executed after click ok button.

Example Usage :

public void ShowAlertSample(string title, string message)
{
Gamebase.Util.ShowAlert(title, message, () =>
{
Debug.Log("The button was clicked.");
});
}
static void ShowAlert(string title, string message)
This method to create the dialog and display it on screen.
Definition Gamebase.cs:2918
The Util class provides convenient and useful methods.
Definition Gamebase.cs:2902
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11