logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityTimerInstaller

    Unity-specific installer for timer services.
    Manages factory and service creation with MonoBehaviour components.

    Inheritance
    object
    UnityTimerInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Timer.Installation.Installers
    Assembly: Serenity.UnityTimer.Installation.dll
    Syntax
    public class UnityTimerInstaller : TimerInstaller, IFoundationInstaller, IInstaller

    Constructors

    UnityTimerInstaller()

    Declaration
    public UnityTimerInstaller()

    Methods

    Install(ILogService)

    Installs the Unity timer system by creating factories, service, and time provider.
    Sets up the complete timer infrastructure with Unity-specific implementations. The UnityTimeProvider is the single component that reads UnityEngine.Time and drives all timers via UpdateTimers().

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

    InstallService(ILogService)

    Creates and installs the Unity timer service using the configured factories.
    Combines the service factory and timer factory to create a complete timer service.

    Declaration
    protected override ITimerService InstallService(ILogService logService)
    Parameters
    Type Name Description
    ILogService logService
    Returns
    Type Description
    ITimerService

    A configured Unity timer service instance

    InstallServiceFactory()

    Creates and installs the Unity-specific timer service factory.
    Provides the factory for creating timer services as MonoBehaviour components.

    Declaration
    protected override ITimerServiceFactory InstallServiceFactory()
    Returns
    Type Description
    ITimerServiceFactory

    A Unity timer service factory instance

    InstallTimerFactory()

    Creates and installs the Unity-specific timer factory.
    Provides the factory for creating individual timer instances as MonoBehaviour components.

    Declaration
    protected override TimerFactory InstallTimerFactory()
    Returns
    Type Description
    TimerFactory

    A Unity timer factory instance

    Implements

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