logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ShowToastSignal

    Signal that requests a transient toast notification carrying Message.
    Dispatched through the event system (e.g. a cascade menu option's OnSelectSignal, a SignalEmitterComponent, or any code path) and turned into a visible toast by a UnityToastSignalReactionComponent listening for it.

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

    Where Show(string) needs the message wired into a parameterless UnityEvent at edit time, this signal carries the message as data — so a single listener can render any message, and authors can vary the text per call site (e.g. a different message per menu option) without one component/event per message.

    Constructors

    ShowToastSignal()

    Initializes an empty signal (used by the inspector / serialization).

    Declaration
    public ShowToastSignal()

    ShowToastSignal(string)

    Initializes a signal carrying message.

    Declaration
    public ShowToastSignal(string message)
    Parameters
    Type Name Description
    string message

    The text the toast should display.

    Fields

    Message

    Declaration
    public string Message
    Field Value
    Type Description
    string

    The text the toast should display. Falls back to the toast's default message when empty.

    Methods

    ToString()

    Returns a string representation of the signal.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved