logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityRecipe

    Root data-transfer object for a .serenity-recipe.json file. This is a plain JsonUtility-serializable description of the Serenity content a project wants; it is read by the importer and turned into real ScriptableObjects through the Unity Editor API.
    External tools (including AI assistants) should emit this format instead of authoring Unity .asset/.meta files, GUIDs, or serialized YAML directly.

    Inheritance
    object
    SerenityRecipe
    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 SerenityRecipe
    Remarks

    Every known section is modelled here — including the ones that are not yet generated — so that a populated but unsupported section can be detected and reported rather than silently ignored (UnityEngine.JsonUtility drops unknown JSON keys without warning).

    Constructors

    SerenityRecipe()

    Declaration
    public SerenityRecipe()

    Fields

    assets

    Declaration
    public RecipeGenericAssetDto[] assets
    Field Value
    Type Description
    RecipeGenericAssetDto[]

    Generic Serenity ScriptableObjects captured field-by-field — composite views, UI themes, action definitions, and every settings/config asset that has no dedicated typed section above. Includes polymorphic [SerializeReference] signal graphs.

    audioClips

    Declaration
    public RecipeAudioClipDto[] audioClips
    Field Value
    Type Description
    RecipeAudioClipDto[]

    AudioPlayer clip definitions to create or update.

    cutscenes

    Declaration
    public RecipeCutsceneDto[] cutscenes
    Field Value
    Type Description
    RecipeCutsceneDto[]

    Cutscene definitions to create or update (ordered stages + optional rig prefab).

    feedbacks

    Declaration
    public RecipeFeedbackDto[] feedbacks
    Field Value
    Type Description
    RecipeFeedbackDto[]

    Feedback definitions to create or update. Each entry may optionally generate a companion UnityEventDispatcherSignalDefinition trigger (set generateTrigger: true).

    gameMode

    Declaration
    public RecipeDeferredEntryDto[] gameMode
    Field Value
    Type Description
    RecipeDeferredEntryDto[]

    GameMode enter/exit signal configurations. Deferred — reported when present.

    gameSettings

    Declaration
    public RecipeDeferredEntryDto[] gameSettings
    Field Value
    Type Description
    RecipeDeferredEntryDto[]

    Game settings / installer references. Deferred — reported when present.

    importOptions

    Declaration
    public RecipeImportOptionsDto importOptions
    Field Value
    Type Description
    RecipeImportOptionsDto

    Optional import behaviour overrides. May be null, in which case defaults apply.

    localization

    Declaration
    public RecipeLocalizationDto[] localization
    Field Value
    Type Description
    RecipeLocalizationDto[]

    Unity Localization String Table Collections to create or update — locales and per-key translations. Generated by LocalizationRecipeImporter (which ships in the localization assembly).

    menus

    Declaration
    public RecipeMenuDto[] menus
    Field Value
    Type Description
    RecipeMenuDto[]

    Menu definitions to create or update (layout + simple options; signal wiring deferred).

    modals

    Declaration
    public RecipeModalDto[] modals
    Field Value
    Type Description
    RecipeModalDto[]

    Modal definitions to create or update (content/layout + simple options; signal wiring deferred).

    musicTracks

    Declaration
    public RecipeMusicTrackDto[] musicTracks
    Field Value
    Type Description
    RecipeMusicTrackDto[]

    Music track definitions to create or update.

    outputRoot

    Declaration
    public string outputRoot
    Field Value
    Type Description
    string

    Project-relative root folder (under Assets/) that all generated assets live beneath.

    playerInput

    Declaration
    public RecipeDeferredEntryDto[] playerInput
    Field Value
    Type Description
    RecipeDeferredEntryDto[]

    Player input configurations. Deferred — reported when present.

    projectName

    Declaration
    public string projectName
    Field Value
    Type Description
    string

    Human-readable name of the project the recipe describes. Informational only.

    schemaVersion

    Declaration
    public string schemaVersion
    Field Value
    Type Description
    string

    Schema version of this recipe document (e.g. "1.0.0").

    signals

    Declaration
    public RecipeDeferredEntryDto[] signals
    Field Value
    Type Description
    RecipeDeferredEntryDto[]

    EventDispatcher signal definitions. Deferred — reported when present.

    In this article
    © 2026 Serenity. All Rights Reserved