logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeModalDto

    Recipe description of a single modal. Maps to a UnityModalSettings asset.

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

    Constructors

    RecipeModalDto()

    Declaration
    public RecipeModalDto()

    Fields

    alignment

    Declaration
    public string alignment
    Field Value
    Type Description
    string

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

    direction

    Declaration
    public string direction
    Field Value
    Type Description
    string

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

    id

    Declaration
    public string id
    Field Value
    Type Description
    string

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

    isTranslatingText

    Declaration
    public bool isTranslatingText
    Field Value
    Type Description
    bool

    Whether the body text is treated as a localization key.

    isTranslatingTitle

    Declaration
    public bool isTranslatingTitle
    Field Value
    Type Description
    bool

    Whether the title is treated as a localization key.

    options

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

    Modal 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.

    scrollable

    Declaration
    public bool scrollable
    Field Value
    Type Description
    bool

    Whether overflowing options scroll.

    signalTypeName

    Declaration
    public string signalTypeName
    Field Value
    Type Description
    string

    Optional assembly-qualified signal type name the modal listens for. Passed through verbatim; a non-empty value that cannot be resolved produces a warning (the modal is still created).

    text

    Declaration
    public string text
    Field Value
    Type Description
    string

    Modal body text.

    title

    Declaration
    public string title
    Field Value
    Type Description
    string

    Modal title text.

    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