logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.GameMode.Infrastructure.Components

    Classes

    GameModeMusicBinderComponent

    No-code binder that plays music (or fires any other signal) when the game mode changes.
    For each GameMode a designer assigns a Signal Definition asset (typically a PlayMusicTrack signal authored with the Signal Definition inspector); when the game enters that mode, the binder dispatches it. This is the no-code realization of "different music per game mode" — previously it required a code-defined EventDispatcherAction<GameModeChangedSignal>.

    GameModeMusicBinderComponent.GameModeMusicEntry

    Maps one game mode to the Signal Definition dispatched when that mode is entered.

    UnityDiagnosticsOverlayComponent

    On-screen diagnostics HUD for play mode: shows frame rate, time scale, the current/previous GameMode and pause state, and the number of joined players — a designer-facing "what is the game doing right now?" panel that answers the most common "why isn't this working?" questions without the Console.

    In this article
    © 2026 Serenity. All Rights Reserved