Skip to content

Time Picker Dialog

Koretskyi Kostiantyn edited this page Jun 23, 2022 · 1 revision

The UM_TimePickerDialog is a simple dialog containing native Time Picker component inside that will allow your app user to pick a time. See the use example below:

var picker = new UM_TimePickerDialog();
picker.Show(result =>
{
    if (result.IsSucceeded)
    {
        Debug.Log("Time picked result.Hour:" + result.Hour);
        Debug.Log("Time picked result.Minute:" + result.Minute);
    }
    else
    {
        Debug.Log("Failed to pick a time: " + result.Error.FullMessage);
    }
});

Note: When testing inside the Unity Editor environmnet the current time values will be returned as user time choise.

Clone this wiki locally