Notifications
Notification
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.
Scripting
using UnityEngine;
using Michsky.UI.Hex; // Namespace
public class SampleClass : MonoBehaviour
{
[SerializeField] private NotificationManager notification;
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();
}
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.