logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuTitleBuilder

    Builder responsible for rendering and configuring the menu title element.
    Handles title instantiation, text configuration, alignment, and gap application.

    Inheritance
    object
    UnityMenuTitleBuilder
    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 UnityMenuTitleBuilder

    Constructors

    UnityMenuTitleBuilder(IFoundationViewElementFactory, IUiService, ILogService)

    Declaration
    public UnityMenuTitleBuilder(IFoundationViewElementFactory foundationViewElementFactory, IUiService uiService, ILogService logService)
    Parameters
    Type Name Description
    IFoundationViewElementFactory foundationViewElementFactory
    IUiService uiService
    ILogService logService

    Methods

    ApplyOptionsGap(IMenuSettingsDefinition, UnityMenuView, bool)

    If there's a title, applies the TitleGap separation between title and content. For BOTTOM positions: moves the title UP to prevent content from extending below the margin.

    Declaration
    public void ApplyOptionsGap(IMenuSettingsDefinition settings, UnityMenuView view, bool hasTitle)
    Parameters
    Type Name Description
    IMenuSettingsDefinition settings
    UnityMenuView view
    bool hasTitle

    RenderTitle(IMenuSettingsDefinition, IUiThemeDefinition, UnityMenuView, Transform)

    Renders title if not empty. Activates/Deactivates the title GameObject, writes the text, and aligns the title according to the menu's UiAnchorType.

    Declaration
    public bool RenderTitle(IMenuSettingsDefinition settings, IUiThemeDefinition theme, UnityMenuView view, Transform parent)
    Parameters
    Type Name Description
    IMenuSettingsDefinition settings
    IUiThemeDefinition theme
    UnityMenuView view
    Transform parent
    Returns
    Type Description
    bool
    In this article
    © 2026 Serenity. All Rights Reserved