herbou / Unity_ConfirmDialogUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confirm Dialog UI

Video thumbnail

  • 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( );
}
...

■ Dialog properties :

Title :

SetTitle ( string title )

Body Text :

SetMessage ( string message )

Fade duration :

SetFadeDuration ( float duration )

Show or Hide bottom buttons:

SetButtonsVisibility ( bool visibility )

Buttons color :

SetButtonsColor ( DialogButtonColor color )

Right button text :

SetPositiveButtonText ( string text )

Left button text :

SetNegativeButtonText ( string text )

■ Dialog Events :

Right button click event :

OnPositiveButtonClicked ( UnityAction action )

Left button click event :

OnNegativeButtonClicked ( UnityAction action )

Close button event :

OnCloseButtonClicked ( UnityAction action )

About


Languages

Language:C# 100.0%