Class UnityLeaderboardViewInstaller
Builds every authored leaderboard view (UnityLeaderboardViewDefinition) at startup and
registers it with a UnityLeaderboardViewService. Leaderboard view assets share the
LEADERBOARD Addressables label. Built views start hidden until shown through
the IViewRouter. Mirrors UnityCascadeViewInstaller.
Inherited Members
Namespace: Serenity.Leaderboard.Installation.Installers
Assembly: Serenity.UnityLeaderboard.Installation.dll
Syntax
public sealed class UnityLeaderboardViewInstaller
Constructors
UnityLeaderboardViewInstaller()
Declaration
public UnityLeaderboardViewInstaller()
Properties
Service
The registry created by Install(UnityLeaderboardViewInstallerInput); 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 UnityLeaderboardViewService GetService()
Returns
| Type | Description |
|---|---|
| UnityLeaderboardViewService | The leaderboard view service. |
Install(UnityLeaderboardViewInstallerInput)
Builds and registers all leaderboard views (hidden) from their definitions.
Declaration
public void Install(UnityLeaderboardViewInstallerInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityLeaderboardViewInstallerInput | input | Startup dependencies (canvas, leaderboard service/settings, ui service, router, log). |