Time Picker Dialog - StansAssets/com.stansassets.ultimate-mobile GitHub Wiki
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.