logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuBackgroundBuilder

    Builder responsible for creating and configuring the menu background element.
    Handles background instantiation, sizing to cover child bounds, and padding configuration.

    Inheritance
    object
    UnityMenuBackgroundBuilder
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Infrastructure.Views.Factories
    Assembly: Serenity.UnityMenu.Infrastructure.dll
    Syntax
    public class UnityMenuBackgroundBuilder

    Constructors

    UnityMenuBackgroundBuilder(IFoundationViewElementFactory, UnityUiBackgroundComponentFactory, AudioPlayerPlayClip, string, ILogService)

    Declaration
    public UnityMenuBackgroundBuilder(IFoundationViewElementFactory foundationViewElementFactory, UnityUiBackgroundComponentFactory backgroundComponentFactory, AudioPlayerPlayClip audioPlayerPlayClip, string audioPlayerServiceId, ILogService logService)
    Parameters
    Type Name Description
    IFoundationViewElementFactory foundationViewElementFactory
    UnityUiBackgroundComponentFactory backgroundComponentFactory
    AudioPlayerPlayClip audioPlayerPlayClip
    string audioPlayerServiceId
    ILogService logService

    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
    In this article
    © 2026 Serenity. All Rights Reserved