logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeAssetChange

    What a recipe did (or would do) to one asset that already existed: nothing, only a blank identity filled in (the asset's own, or that of an option or a signal it holds), or real field changes — and which fields. The difference between the three is what an author needs to read in the report, so it is decided once here from two snapshots rather than by each importer.

    Inheritance
    object
    RecipeAssetChange
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: Serenity.ProjectRecipe.Infrastructure.Editor
    Assembly: Serenity.UnityProjectRecipe.Infrastructure.Editor.dll
    Syntax
    public sealed class RecipeAssetChange

    Properties

    ChangedFields

    Declaration
    public IReadOnlyList<string> ChangedFields { get; }
    Property Value
    Type Description
    IReadOnlyList<string>

    The readable paths of the fields that changed; empty when none did.

    Outcome

    Declaration
    public RecipeAssetOutcome Outcome { get; }
    Property Value
    Type Description
    RecipeAssetOutcome

    Unchanged, FilledBlankIdentity or Updated.

    Methods

    Between(RecipeSerializedSnapshot, RecipeSerializedSnapshot)

    Classifies the difference between two snapshots of the same asset.

    Declaration
    public static RecipeAssetChange Between(RecipeSerializedSnapshot before, RecipeSerializedSnapshot after)
    Parameters
    Type Name Description
    RecipeSerializedSnapshot before

    The asset before the recipe touched it.

    RecipeSerializedSnapshot after

    The asset after the recipe touched it.

    Returns
    Type Description
    RecipeAssetChange

    The change.

    In this article
    © 2026 Serenity. All Rights Reserved