Builder responsible for creating and configuring the menu background element.
Handles background instantiation, sizing to cover child bounds, and padding configuration.
Inheritance
UnityMenuBackgroundBuilder
Assembly: Serenity.UnityMenu.Infrastructure.dll
public class UnityMenuBackgroundBuilder
Constructors
UnityMenuBackgroundBuilder(IFoundationViewElementFactory, UnityUiBackgroundComponentFactory, AudioPlayerPlayClip, string, ILogService)
Declaration
public UnityMenuBackgroundBuilder(IFoundationViewElementFactory foundationViewElementFactory, UnityUiBackgroundComponentFactory backgroundComponentFactory, AudioPlayerPlayClip audioPlayerPlayClip, string audioPlayerServiceId, ILogService logService)
Parameters
Methods
CreateBackground(GameObject, GameObject, IUiThemeDefinition)
Creates and configures the menu background using the UnityUiBackgroundComponentFactory.
Declaration
public GameObject CreateBackground(GameObject viewGameObject, GameObject menuBackgroundPrefab, IUiThemeDefinition theme)
Parameters
| Type |
Name |
Description |
| GameObject |
viewGameObject |
|
| GameObject |
menuBackgroundPrefab |
|
| IUiThemeDefinition |
theme |
|
Returns
| Type |
Description |
| GameObject |
|