Notifications
Notification (Standard)
It can be used to show any kind of information. It is automatically minimized after a certain amount of time, based on the ‘Minimize After’ parameter.
Feed Notification
It can be used to show in-game notifications such as new quests, XP gains and more. It is automatically minimized after a certain amount of time, based on the ‘Minimize After’ parameter.
Scripting
using UnityEngine;
using Michsky.UI.Beam; // Namespace
public class SampleClass : MonoBehaviour
{
[SerializeField] private NotificationManager notification;
[SerializeField] private FeedNotification feedNotification;
void NotificationFunction()
{
// Update notification data
notification.icon = SpriteVariable;
notification.notificationText = "Your Text";
notification.UpdateUI();
// Change paramaters
notification.minimizeAfter = 4f; // Minimize after 4 seconds
// Auto aniamte notification based on its state
notification.AnimateNotification();
// Expand or minimize manually
notification.ExpandNotification();
notification.MinimizeNotification();
}
void FeedNotificationFunction()
{
// Update notification data
feedNotification.icon = SpriteVariable;
feedNotification.notificationText = "Your Text";
feedNotification.UpdateUI();
// Change paramaters
feedNotification.minimizeAfter = 4f; // Minimize after 4 seconds
// Auto aniamte notification based on its state
feedNotification.AnimateNotification();
// Expand or minimize manually
feedNotification.ExpandNotification();
feedNotification.MinimizeNotification();
}
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.