Skip to content

onurtnrkl/unity3d-alertify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

  • Install Unity Package
  • Drag the Alertify prefab from the Alertify folder into your scene.
  • Edit settings from Alertify tab in Unity Editor.

Usage

Notification Static Methods

  • Alert(string text, UnityAction onClickOk)
  • Confirm(string text, UnityAction onClickOk, UnityAction onClickCancel)
  • Prompt(string text, UnityAction onCickOk)
  • Prompt(string text, UnityAction onClickOk, UnityAction onClickCancel)

Dialog Static Methods

  • Message(string text)
  • Success(string text)
  • Error(string text)
  • Warning(string text)

Example

using Alertify;

Dialog.Alert("Alert!", () => Notification.Warning("Warning!"));
Dialog.Confirm("Confirm!", () => Notification.Success("Success!"), () => Notification.Error("Error!"));
Dialog.Prompt("Prompt!", (string input) => Notification.Success("Success: " + input), () => Notification.Error("Error!"));

About

In game notification and alert system for Unity

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages