Video tutorial : https://youtu.be/xqx6BmaWOx0
- STEP 1 : Add Text Mesh Pro to your project.
- STEP 2 : Add ConfirmDialoUI package.
- STEP 3 : Add the DialogUI prefab to your scene.
now you're ready to go 😉
To show the dialog you simply write:
using EasyUI.Dialogs;
...
...
void Start ( ) {
ConfirmDialogUI.Instance.SetMessage("Hello").Show( );
}
...
SetTitle ( string title )
SetMessage ( string message )
SetFadeDuration ( float duration )
SetButtonsVisibility ( bool visibility )
SetButtonsColor ( DialogButtonColor color )
SetPositiveButtonText ( string text )
SetNegativeButtonText ( string text )
OnPositiveButtonClicked ( UnityAction action )
OnNegativeButtonClicked ( UnityAction action )
OnCloseButtonClicked ( UnityAction action )