logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityTimerServiceFactory

    Factory for creating Unity-specific timer services as MonoBehaviour components.
    Provides centralized creation of timer services with proper GameObject setup and initialization.

    Inheritance
    object
    UnityTimerServiceFactory
    Implements
    ITimerServiceFactory
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Timer.Infrastructure.Services
    Assembly: Serenity.UnityTimer.Infrastructure.dll
    Syntax
    public class UnityTimerServiceFactory : ITimerServiceFactory

    Constructors

    UnityTimerServiceFactory()

    Declaration
    public UnityTimerServiceFactory()

    Methods

    CreateService(string, TimerFactory, ILogService)

    Creates a new Unity timer service with the specified configuration.
    Instantiates a GameObject with the timer service component and initializes it with the provided factory.

    Declaration
    public ITimerService CreateService(string serviceName, TimerFactory timerFactory, ILogService logService)
    Parameters
    Type Name Description
    string serviceName

    The name to assign to the service GameObject

    TimerFactory timerFactory

    The timer factory for creating individual timer instances

    ILogService logService

    The log service to be used by the timer service.

    Returns
    Type Description
    ITimerService

    A configured Unity timer service instance

    Implements

    ITimerServiceFactory
    In this article
    © 2026 Serenity. All Rights Reserved