logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityMinimalLoopRecipeFactory

    Builds an in-memory SerenityRecipe for the minimal boot to main-menu to gameplay to pause loop, from a small set of author choices (MinimalLoopOptions). Pure object construction — no AssetDatabase access; the caller runs the result through SerenityRecipeEngine.

    Inheritance
    object
    SerenityMinimalLoopRecipeFactory
    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.SetupAssistant
    Assembly: Serenity.UnitySetupAssistant.Infrastructure.Editor.dll
    Syntax
    public static class SerenityMinimalLoopRecipeFactory

    Methods

    Build(MinimalLoopOptions)

    Builds the full recipe for the minimal loop described by options: the foundation (see BuildFoundation(MinimalLoopOptions, IReadOnlyCollection<string>)) plus the main and pause menus. Initialize Serenity no longer authors menus itself (that is Menu Manager's job) and calls only BuildFoundation(MinimalLoopOptions, IReadOnlyCollection<string>) now; this composition stays for the existing tests that still want the historical, menu-including shape.

    Declaration
    public static SerenityRecipe Build(MinimalLoopOptions options)
    Parameters
    Type Name Description
    MinimalLoopOptions options

    The author's choices for this loop.

    Returns
    Type Description
    SerenityRecipe

    A fully-populated, in-memory SerenityRecipe.

    BuildFoundation(MinimalLoopOptions, IReadOnlyCollection<string>)

    Builds the menu-less recipe for the seven support-asset settings described by options — the UI, GameMode, logging, menu-service, modal-service, and initialization-pipeline settings. No menus section: an absent one is a normal state the recipe engine's MenuRecipeImporter already treats as "nothing to do". skipSettingsTypeNames names (by SettingsTypeName simple name, e.g. "UnityUiSettings") the support assets to leave out entirely — for a system the reader already adopted or authored themselves via the Settings step, so the recipe does not create a second, competing settings asset.

    Declaration
    public static SerenityRecipe BuildFoundation(MinimalLoopOptions options, IReadOnlyCollection<string> skipSettingsTypeNames = null)
    Parameters
    Type Name Description
    MinimalLoopOptions options

    The author's choices for this loop.

    IReadOnlyCollection<string> skipSettingsTypeNames

    Simple settings-type names to omit from assets, or null/empty to include all seven.

    Returns
    Type Description
    SerenityRecipe

    A SerenityRecipe with menus left null.

    In this article
    © 2026 Serenity. All Rights Reserved