logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameSessionInstaller

    Unity-specific installer for the GameSession service.

    Inheritance
    object
    UnityGameSessionInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.GameSession.Installation.Installers
    Assembly: Serenity.UnityGameSession.Installation.dll
    Syntax
    public class UnityGameSessionInstaller : GameSessionInstaller, IFoundationInstaller, IInstaller
    Remarks

    Creates the UnityGameSessionService on a dedicated GameObject and registers a game-session timer via the ITimerService.

    Constructors

    UnityGameSessionInstaller()

    Declaration
    public UnityGameSessionInstaller()

    Methods

    Install(ILogService, ITimerService)

    Installs the GameSession service by creating the Unity MonoBehaviour implementation and registering a scaled timer for session elapsed-time tracking.

    Declaration
    public override void Install(ILogService logService, ITimerService timerService)
    Parameters
    Type Name Description
    ILogService logService

    The logging service for diagnostic output.

    ITimerService timerService

    The timer service used to register the session timer.

    Implements

    IFoundationInstaller
    IInstaller
    In this article
    © 2026 Serenity. All Rights Reserved