logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityToastSignalReactionComponent

    Bridge that turns a dispatched ShowToastSignal into a visible toast on a UnityToastComponent.
    Unlike SignalReactionComponent (whose response is parameterless), this listener reads the signal's Message payload and forwards it to Show(string), so one component renders any message — letting different call sites (e.g. each cascade menu option) request a different toast without one event per message.

    Inheritance
    object
    UnityToastSignalReactionComponent
    Namespace: Serenity.Ui.Infrastructure.Components.Toast
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public class UnityToastSignalReactionComponent : MonoBehaviour
    Remarks

    Subscription goes through the shared IEventDispatcherService resolved via ServiceLocatorBridge. Because the service is registered during the initialization pipeline (possibly after this component is enabled), binding waits via a coroutine and unsubscribes cleanly when disabled or destroyed — mirroring SignalReactionComponent.

    Constructors

    UnityToastSignalReactionComponent()

    Declaration
    public UnityToastSignalReactionComponent()
    In this article
    © 2026 Serenity. All Rights Reserved