logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeGenericAssetDto

    A generic Serenity ScriptableObject in a recipe: its type, stable id, output path, and serialized fields. Used for every supported asset type that does not have a dedicated typed section.

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

    Constructors

    RecipeGenericAssetDto()

    Declaration
    public RecipeGenericAssetDto()

    Fields

    fields

    Declaration
    public RecipeNode[] fields
    Field Value
    Type Description
    RecipeNode[]

    The asset's serialized fields as a node tree (excludes Id/Guid, which map to id).

    id

    Declaration
    public string id
    Field Value
    Type Description
    string

    Stable logical id (the asset's foundation Id, or its file name).

    matchByOutputPath

    Declaration
    public bool matchByOutputPath
    Field Value
    Type Description
    bool

    When true and an asset already exists at output, the asset is patched in place without rewriting its IFoundationSettings.Id — so an in-place field update need not repeat (or even know) the asset's current Id. The asset is always located by output path; this only governs whether the existing Id is preserved. Has no effect when the asset is created.

    output

    Declaration
    public string output
    Field Value
    Type Description
    string

    Output path relative to outputRoot, ending in .asset.

    type

    Declaration
    public string type
    Field Value
    Type Description
    string

    The ScriptableObject type name to create, e.g. UnityCompositeViewDefinition.

    In this article
    © 2026 Serenity. All Rights Reserved