Class UnityMenuInstallerInstallInput
The Unity-specific install input for the menu aggregate: everything the engine-agnostic MenuInstallerInstallInput<TAction, TContext> carries, plus the menu service settings asset the composition root pins on its installer. The composition root already had that asset — it handed the step its Id and ControllerId — while the installer re-discovered the same asset by label, so one asset had two independent sources and nothing kept them equal.
Shaped as a subclass rather than a wrapper so UnityMenuInstaller.Install keeps its
engine-agnostic parameter type and prefers the DTO with a label fallback, the shape
UnityUiInstaller and UnityLocalizationInstaller already use.
Namespace: Serenity.Menu.Installation.Installers
Assembly: Serenity.UnityMenu.Installation.dll
Syntax
public class UnityMenuInstallerInstallInput : MenuInstallerInstallInput<InputAction, InputAction.CallbackContext>
Constructors
UnityMenuInstallerInstallInput(string, string, object, string, IViewBrowserService, IPlayerInputService, IPlayerInputActionBindingFactory<InputAction, CallbackContext>, IFoundationViewElementFactory, IUiThemeDefinition, ILogService, UnityMenuServiceSettingsDefinition)
Declaration
public UnityMenuInstallerInstallInput(string id, string controllerId, object canvas, string audioPlayerId, IViewBrowserService viewBrowserService, IPlayerInputService playerInputService, IPlayerInputActionBindingFactory<InputAction, InputAction.CallbackContext> playerInputActionBindingFactory, IFoundationViewElementFactory foundationViewElementFactory, IUiThemeDefinition theme, ILogService logService, UnityMenuServiceSettingsDefinition serviceSettingsDefinition)
Parameters
| Type | Name | Description |
|---|---|---|
| string | id | |
| string | controllerId | |
| object | canvas | |
| string | audioPlayerId | |
| IViewBrowserService | viewBrowserService | |
| IPlayerInputService | playerInputService | |
| IPlayerInputActionBindingFactory<InputAction, CallbackContext> | playerInputActionBindingFactory | |
| IFoundationViewElementFactory | foundationViewElementFactory | |
| IUiThemeDefinition | theme | |
| ILogService | logService | |
| UnityMenuServiceSettingsDefinition | serviceSettingsDefinition |
Fields
ServiceSettingsDefinition
Declaration
public readonly UnityMenuServiceSettingsDefinition ServiceSettingsDefinition
Field Value
| Type | Description |
|---|---|
| UnityMenuServiceSettingsDefinition | The menu service settings asset the composition root pins, or null to discover one by label. |
Methods
ServiceSettingsDefinitionOf(MenuInstallerInstallInput<InputAction, CallbackContext>)
The settings asset input carries, or null when it carries none — an input built
by a caller that predates this type, or one whose composition root pinned nothing. Null is the
signal to fall back to the label query, so the decision stays in one named place instead of an
inline cast at the call site.
Declaration
public static UnityMenuServiceSettingsDefinition ServiceSettingsDefinitionOf(MenuInstallerInstallInput<InputAction, InputAction.CallbackContext> input)
Parameters
| Type | Name | Description |
|---|---|---|
| MenuInstallerInstallInput<InputAction, CallbackContext> | input | The install input the menu installer was handed. |
Returns
| Type | Description |
|---|---|
| UnityMenuServiceSettingsDefinition |