Notification Manager
Workflow
A component responsible for managing the notifications. It requires a parent for listing the notification items. Supports both pop-up and standard notifications.
Pre-Made Notifications
It’s possible to prepare pre-made notifications without requiring scripting. You can simply use the ‘Notification Creator’ component to create pre-made notifications and trigger them at runtime.
Scripting
using UnityEngine;
using Michsky.DreamOS; // DreamOS namespace
public class SampleClass : MonoBehaviour
{
[SerializeField] private NotificationManager notificationManager; // Manager variable
void YourFunction()
{
// Create notification
notificationManager.CreateNotification(Sprite icon, "Title", "Description", bool createPopup, bool enableSound);
// Create popup notification only
notificationManager.CreatePopupNotification(Sprite icon, "Title", "Description", bool enableSound);
// Static methods
// These methods will search for the manager automatically
NotificationManager.CreateNotification(Sprite icon, "Title", "Description", bool createPopup, bool enableSound);
NotificationManager.CreatePopupNotification(Sprite icon, "Title", "Description", bool createPopup, bool enableSound);
}
}
How can we help?
A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.