Notification System

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

Screenshots

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")
NotificationType

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.

Icons

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

.ShowNotification();

Final result:

Notifier.Builder.CreateNew()
    .SetText($"Find {requiredItem.publicName}")
    .SetNotificationType(Notifier.NotificationType.LEFT_PANEL)
    .SetIcon("failed")
    .ShowNotification();

Last updated