Builder responsible for creating and configuring the root menu view structure.
Handles view GameObject creation, component setup, initialization, and options wrapper configuration.
Inheritance
UnityMenuRootBuilder
Assembly: Serenity.UnityMenu.Infrastructure.dll
public class UnityMenuRootBuilder
Constructors
Declaration
public UnityMenuRootBuilder(IUiService uiService)
Parameters
Methods
CreateViewComponent(GameObject, IMenuSettingsDefinition)
Creates and configures the UnityMenuView component on the provided GameObject.
Declaration
public UnityMenuView CreateViewComponent(GameObject viewGameObject, IMenuSettingsDefinition menuSettings)
Parameters
Returns
CreateViewGameObject(Canvas, IMenuSettingsDefinition)
Creates and configures the root GameObject for the menu view with proper parent hierarchy and naming.
Declaration
public GameObject CreateViewGameObject(Canvas canvas, IMenuSettingsDefinition menuSettings)
Parameters
Returns
| Type |
Description |
| GameObject |
|
InitializeView(IViewModel, MenuUseCases, IViewBrowserService, IEventDispatcherService, UnityMenuView, List<IFoundationActionDefinition>, AudioPlayerPlayClip, string, IGameSettingsService)
Sets all necessary settings and dependencies on the UnityMenuView instance.
Declaration
public void InitializeView(IViewModel viewModel, MenuUseCases menuUseCases, IViewBrowserService viewBrowserService, IEventDispatcherService eventDispatcherService, UnityMenuView view, List<IFoundationActionDefinition> menuActions, AudioPlayerPlayClip audioPlayerPlayClip, string audioServiceId, IGameSettingsService gameSettingsService)
Parameters
Creates and configures the options wrapper GameObject that contains all menu option UI components.
Declaration
public void SetOptionsWrapperGameObject(GameObject viewGameObject, UnityMenuView view)
Parameters
| Type |
Name |
Description |
| GameObject |
viewGameObject |
|
| UnityMenuView |
view |
|