Class UnityMenuPresenterFactory
Factory for creating Unity-specific menu presenters with view model dependencies.
Inherited Members
Namespace: Serenity.Menu.InterfaceAdapters.Presenters.Factories
Assembly: Serenity.UnityMenu.InterfaceAdapters.dll
Syntax
public class UnityMenuPresenterFactory : IMenuPresenterFactory, IUiPresenterFactory
Constructors
UnityMenuPresenterFactory(IPlayerInputService)
Initializes the factory with the player input service to inject into created presenters.
Declaration
public UnityMenuPresenterFactory(IPlayerInputService playerInputService)
Parameters
| Type | Name | Description |
|---|---|---|
| IPlayerInputService | playerInputService | The player input service used by presenters to switch the action map. |
Methods
CreatePresenter(Dictionary<string, IViewModel>)
Creates a new Unity menu presenter with the specified view models.
Declaration
public IMenuPresenter CreatePresenter(Dictionary<string, IViewModel> viewModels)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, IViewModel> | viewModels | Dictionary of view models keyed by their identifiers. |
Returns
| Type | Description |
|---|---|
| IMenuPresenter | A new Unity menu presenter instance. |