onurtnrkl / unity3d-alertify

In game notification and alert system for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview

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

License:MIT License


Languages

Language:C# 100.0%