class MAGES::UIs::NotificationSystem

Overview

Deprecated forwarder to global::MAGES.NotificationSystem. More…

class NotificationSystem
{
public:
    // enums

    enum NotificationType;

    // properties

    NotificationSystem Instance;

    // methods

    void SpawnNotification(
        NotificationType notificationType,
        string text,
        bool priority = false,
        float time = 4.0f,
        float height = 1.2f
    );

    void StopAllNotifications();
};

Detailed Documentation

Deprecated forwarder to global::MAGES.NotificationSystem.

The notification system moved to MAGES.Hub.Runtime. This shim keeps the old call sites compiling; it holds no state of its own, so it is a plain class rather than a MonoBehaviour.

Properties

NotificationSystem Instance

Gets the instance of the notification system.

Methods

void SpawnNotification(
    NotificationType notificationType,
    string text,
    bool priority = false,
    float time = 4.0f,
    float height = 1.2f
)

Spawns a notification.

Parameters:

notificationType

The notification type.

text

The text that the notification will display.

priority

Set true to spawn it immediately. Otherwise if there is another notification it will wait.

time

The duration where the notification stays active in the scene.

height

The height where the notification will spawn.

void StopAllNotifications()

This method will stop the current active notification.