logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeExistingAssetUpdater

    Applies a recipe entry to an asset that already exists and says what that changed. An import mutates the asset itself and marks it dirty only when its serialized data really changed, so an unedited entry writes nothing; a dry run applies the very same mutation to a throwaway copy, so the plan it reports is the change the import would make.

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

    Methods

    Apply(SerenityRecipeImportContext, ScriptableObject, Action<ScriptableObject>)

    Applies mutate to existing (or, in a dry run, to a copy).

    Declaration
    public static RecipeAssetChange Apply(SerenityRecipeImportContext context, ScriptableObject existing, Action<ScriptableObject> mutate)
    Parameters
    Type Name Description
    SerenityRecipeImportContext context

    The run's context; its dry-run flag decides what is mutated.

    ScriptableObject existing

    The asset on disk.

    Action<ScriptableObject> mutate

    Writes the recipe entry onto the object it is given.

    Returns
    Type Description
    RecipeAssetChange

    What changed.

    In this article
    © 2026 Serenity. All Rights Reserved