logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityHittableInstaller

    Unity-specific installer for the Hittable service. Creates a UnityHittableService on a dedicated GameObject.

    Inheritance
    object
    UnityHittableInstaller
    Implements
    IFoundationInstaller
    IInstaller
    Namespace: Serenity.Hittable.Installation.Installers
    Assembly: Serenity.UnityHittable.Installation.dll
    Syntax
    public class UnityHittableInstaller : HittableInstaller, IFoundationInstaller, IInstaller

    Constructors

    UnityHittableInstaller(IEventDispatcherService)

    Initializes the Unity Hittable installer.

    Declaration
    public UnityHittableInstaller(IEventDispatcherService eventDispatcherService = null)
    Parameters
    Type Name Description
    IEventDispatcherService eventDispatcherService

    Dispatcher the installed service uses to broadcast HittableHitSignal/HittableDestroyedSignal from TakeHit. Optional: null skips dispatch.

    Fields

    SERVICE_NAME

    Declaration
    protected const string SERVICE_NAME = "HittableService"
    Field Value
    Type Description
    string

    Methods

    Install(ILogService)

    Installs the Hittable service by creating the Unity MonoBehaviour implementation.

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

    The logging service for diagnostic output.

    Implements

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