logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAchievementsViewInstallerInput

    Dependencies required to build and register achievements views at startup. Mirrors the leaderboard-view installer input, plus the achievement service each view reads and the definition source its icons are recovered from.

    Inheritance
    object
    UnityAchievementsViewInstallerInput
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.Achievements.Installation.Installers
    Assembly: Serenity.UnityAchievements.Installation.dll
    Syntax
    public sealed class UnityAchievementsViewInstallerInput

    Constructors

    UnityAchievementsViewInstallerInput()

    Declaration
    public UnityAchievementsViewInstallerInput()

    Fields

    AchievementService

    Service each view reads the player's achievements from.

    Declaration
    public IAchievementService AchievementService
    Field Value
    Type Description
    IAchievementService

    Canvas

    The Unity Canvas (as object) under which achievements views are created.

    Declaration
    public object Canvas
    Field Value
    Type Description
    object

    DefinitionSource

    The source the achievements were declared through; the authored icons are recovered from it.

    Declaration
    public IAchievementDefinitionSource DefinitionSource
    Field Value
    Type Description
    IAchievementDefinitionSource

    EventDispatcherService

    Event dispatcher each view subscribes to for unlock, progress and screenshot signals.

    Declaration
    public IEventDispatcherService EventDispatcherService
    Field Value
    Type Description
    IEventDispatcherService

    LoadViewDefinitions

    Loads the authored view definitions. Left null, they are loaded by their Addressables label.

    Declaration
    public Func<IReadOnlyList<UnityAchievementsViewDefinition>> LoadViewDefinitions
    Field Value
    Type Description
    Func<IReadOnlyList<UnityAchievementsViewDefinition>>
    Remarks

    Injectable for the same reason UnityAchievementDefinitionSource's loader is: a test can hand over ScriptableObject.CreateInstance definitions without an Addressables group, an Addressables build, or a temporary asset on disk.

    LogService

    Logging service.

    Declaration
    public ILogService LogService
    Field Value
    Type Description
    ILogService

    ScreenshotLoader

    Loader the unlock thumbnails are read through. May be null when screenshots are not installed.

    Declaration
    public UnityAchievementScreenshotLoader ScreenshotLoader
    Field Value
    Type Description
    UnityAchievementScreenshotLoader

    ServiceId

    Id assigned to the created UnityAchievementsViewService.

    Declaration
    public string ServiceId
    Field Value
    Type Description
    string

    UiService

    UI service used to resolve the active theme's achievements panel template.

    Declaration
    public IUiService UiService
    Field Value
    Type Description
    IUiService

    ViewBrowserService

    Navigation history each view pops its opener's entry from when cancel returns to it.

    Declaration
    public IViewBrowserService ViewBrowserService
    Field Value
    Type Description
    IViewBrowserService

    ViewRouter

    Router each view uses to return to ReturnViewId on cancel.

    Declaration
    public IViewRouter ViewRouter
    Field Value
    Type Description
    IViewRouter
    In this article
    © 2026 Serenity. All Rights Reserved