logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeMenuDto

    Recipe description of a single menu. Maps to a UnityMenuSettingsDefinition asset.

    Inheritance
    object
    RecipeMenuDto
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProjectRecipe.Infrastructure.Editor.Model
    Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
    Syntax
    public class RecipeMenuDto

    Constructors

    RecipeMenuDto()

    Declaration
    public RecipeMenuDto()

    Fields

    direction

    Declaration
    public string direction
    Field Value
    Type Description
    string

    Layout axis, as a MenuDirection name (VERTICAL or HORIZONTAL). Empty leaves the default.

    horizontalOptionWidth

    Declaration
    public float horizontalOptionWidth
    Field Value
    Type Description
    float

    Explicit option width used when the width mode is EXPLICIT.

    horizontalOptionWidthMode

    Declaration
    public string horizontalOptionWidthMode
    Field Value
    Type Description
    string

    Horizontal column sizing, as a HorizontalOptionWidthMode name (CONTENT, UNIFORM, FILL, EXPLICIT). Empty leaves the default.

    id

    Declaration
    public string id
    Field Value
    Type Description
    string

    Stable logical identifier (becomes the asset's Id). Required.

    isTranslatingTitle

    Declaration
    public bool isTranslatingTitle
    Field Value
    Type Description
    bool

    Whether the title is treated as a localization key.

    onCancel

    Declaration
    public RecipeSignalDto[] onCancel
    Field Value
    Type Description
    RecipeSignalDto[]

    Signals fired when cancel is not consumed by the selected option (maps to OnCancel). See onShow.

    onHide

    Declaration
    public RecipeSignalDto[] onHide
    Field Value
    Type Description
    RecipeSignalDto[]

    Signals fired when the menu is hidden (maps to OnHide). See onShow for null semantics.

    onShow

    Declaration
    public RecipeSignalDto[] onShow
    Field Value
    Type Description
    RecipeSignalDto[]

    Signals fired when the menu is shown (maps to OnShow). null leaves the list untouched; a non-null array (including empty) replaces it.

    onSubmit

    Declaration
    public RecipeSignalDto onSubmit
    Field Value
    Type Description
    RecipeSignalDto

    Single signal dispatched when a menu option is submitted (maps to EventToDispatchOnSubmit). null leaves it untouched; a non-null entry sets it.

    optionAlignment

    Declaration
    public string optionAlignment
    Field Value
    Type Description
    string

    Option alignment, as a UiComponentAlignmentType name (CENTER, LEFT, RIGHT). Empty leaves the default.

    options

    Declaration
    public RecipeUiOptionDto[] options
    Field Value
    Type Description
    RecipeUiOptionDto[]

    Menu options, built as UiOptions including their per-option submit signals.

    optionsGap

    Declaration
    public float optionsGap
    Field Value
    Type Description
    float

    Gap between options.

    output

    Declaration
    public string output
    Field Value
    Type Description
    string

    Output path relative to outputRoot, ending in .asset. Required.

    scrollAxis

    Declaration
    public string scrollAxis
    Field Value
    Type Description
    string

    Scroll axis, as a LayoutScrollAxis name (VERTICAL or HORIZONTAL). Empty leaves the default.

    scrollable

    Declaration
    public bool scrollable
    Field Value
    Type Description
    bool

    Whether overflowing content scrolls.

    title

    Declaration
    public string title
    Field Value
    Type Description
    string

    Menu title text.

    titleGap

    Declaration
    public float titleGap
    Field Value
    Type Description
    float

    Gap between the title and the options.

    viewAlignment

    Declaration
    public string viewAlignment
    Field Value
    Type Description
    string

    View anchor, as a UiAnchorType name (e.g. CENTER, TOP, BOTTOM_LEFT). Empty leaves the default.

    visibleOptionsCount

    Declaration
    public int visibleOptionsCount
    Field Value
    Type Description
    int

    Number of options visible before scrolling clamps; 0 disables clamping.

    In this article
    © 2026 Serenity. All Rights Reserved