Notification System

The notification system is a flexible and easy-to-use module whose main purpose is to quickly display information to the player.

chevron-rightScreenshotshashtag

How to use

Just use Notifier.Builder:

Initiate Builder by

Notifier.Builder.CreateNew()

Then, fill notification data

.SetText("Find key")
.SetNotificationType(Notifier.NotificationType.LEFT_PANEL)
.SetIcon("failed")
chevron-rightNotificationTypehashtag

NotificationType contains three elements: LEFT_PANEL, CENTER_PANEL and RIGHT_PANEL. This is useful when you need different notifications in different part of screen. You can also setup different prefabs for each of this, in Notifier's inspector.

chevron-rightIconshashtag

Icon can be pass as Sprite, or as sprite index. If you choice sprite index, it should be added in Notifier's inspector.

And, in finally, show notification

Final result:

Last updated