logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityFeedbackInstaller

    Unity-specific installer for the Feedback system. Creates the UnityFeedbackService MonoBehaviour and wires all dependencies.

    Inheritance
    object
    UnityFeedbackInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Feedback.Installation.Installers
    Assembly: Serenity.UnityFeedback.Installation.dll
    Syntax
    public class UnityFeedbackInstaller : FeedbackInstaller, IFoundationInstaller, IInstaller

    Constructors

    UnityFeedbackInstaller(IGameSettingsService, IEventDispatcherService, ILogService, IGameCameraService, Func<AudioPlayerType, IAudioPlayerService>)

    Initializes the Unity Feedback installer with required service dependencies.

    Declaration
    public UnityFeedbackInstaller(IGameSettingsService gameSettingsService, IEventDispatcherService eventDispatcherService, ILogService logService, IGameCameraService gameCameraService, Func<AudioPlayerType, IAudioPlayerService> audioServiceResolver = null)
    Parameters
    Type Name Description
    IGameSettingsService gameSettingsService

    Service for accessing game configuration settings.

    IEventDispatcherService eventDispatcherService

    Service for handling feedback events.

    ILogService logService

    Service for logging and error reporting.

    IGameCameraService gameCameraService

    Resolves the camera the screen-shake channel targets.

    Func<AudioPlayerType, IAudioPlayerService> audioServiceResolver

    Resolves the audio player service for a clip type, so the audio feedback channel can play sounds. Invoked lazily at play time. Optional (null disables audio feedback).

    Methods

    GetActingDeviceTracker()

    Gets the acting-device tracker created during install, for registration in the service locator so the UI input layer shares the same instance. Null before install.

    Declaration
    public IActingDeviceTracker GetActingDeviceTracker()
    Returns
    Type Description
    IActingDeviceTracker

    Install(ILogService)

    Installs the feedback system: loads settings, creates the service via factory, wires channels and the definition provider, and registers subscriptions.

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

    Logging service for the installation pass.

    Implements

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