Easy Interaction System
  • 👋Welcome
  • 🚀Installation
    • New Project Setup
  • Setup new scene
  • Creating new interactions
    • Interaction anatomy
      • Input hints
        • More additional action hints
        • UpdateHints
      • Keep action active
      • Analog of OnEnable and OnDisable interaction
      • Analog of Update
      • Debug active interactions
  • Suport
  • Additional Systems
    • Inventory System
    • Notification System
Powered by GitBook
On this page
  1. Additional Systems

Notification System

PreviousInventory System

Last updated 1 year ago

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();