Unity Confirm Dialog UI by herbou - 14

GUI

Unknown VersionUnknown LicenseUpdated 8 days agoCreated on November 14th, 2020
Go to source

Confirm Dialog UI

Video tutorial : https://youtu.be/xqx6BmaWOx0

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 )
Show all projects by herbou