logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityToastHostBinder

    Subscribes every toast host under a UI root to the toast signal, inactive hosts included. A host that starts inactive never runs its own enable callback, so without this nothing would ever listen for its toasts.

    Inheritance
    object
    UnityToastHostBinder
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Infrastructure.Components.Toast
    Assembly: Serenity.UnityUi.Infrastructure.dll
    Syntax
    public static class UnityToastHostBinder

    Methods

    BindAll(GameObject, IEventDispatcherService)

    Binds every UnityToastSignalReactionComponent under uiRoot.

    Declaration
    public static int BindAll(GameObject uiRoot, IEventDispatcherService dispatcher)
    Parameters
    Type Name Description
    GameObject uiRoot
    IEventDispatcherService dispatcher
    Returns
    Type Description
    int

    How many toast hosts were bound.

    In this article
    © 2026 Serenity. All Rights Reserved