Class UnityAchievementsViewInstaller
Builds every authored achievements view (UnityAchievementsViewDefinition) at startup and
registers it with a UnityAchievementsViewService. View assets share the
ACHIEVEMENTS Addressables label. Built views start hidden until shown through
the IViewRouter. Mirrors UnityLeaderboardViewInstaller.
Inherited Members
Namespace: Serenity.Achievements.Installation.Installers
Assembly: Serenity.UnityAchievements.Installation.dll
Syntax
public sealed class UnityAchievementsViewInstaller
Constructors
UnityAchievementsViewInstaller()
Declaration
public UnityAchievementsViewInstaller()
Properties
Service
The registry created by Install(UnityAchievementsViewInstallerInput); null until then.
Declaration
public IViewProvider Service { get; }
Property Value
| Type | Description |
|---|---|
| IViewProvider |
Methods
GetService()
The created service, for host registration with the service locator and the router.
Declaration
public UnityAchievementsViewService GetService()
Returns
| Type | Description |
|---|---|
| UnityAchievementsViewService | The achievements view service. |
Install(UnityAchievementsViewInstallerInput)
Builds and registers all achievements views (hidden) from their definitions.
Declaration
public void Install(UnityAchievementsViewInstallerInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityAchievementsViewInstallerInput | input | Startup dependencies (canvas, achievement service, definition source, ui service, router, log). |