logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class GameSaveCreator

    Generates (or updates) the project-wide UnityGameSaveSettings asset, plus optionally its backend, from a single description. Mirrors Serenity.Leaderboard.Infrastructure.Editor.Builder.LeaderboardCreator and its own sibling Serenity.GameProgress.Infrastructure.Editor.Builder.GameProgressCreator: static class, Input/Result DTOs, Validate/ValidateIdentity, Create with created-paths rollback on failure. CreateGameSaveSettingsWindow only collects input and renders results; every asset mutation lives here.

    Inheritance
    object
    GameSaveCreator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameSave.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityGameSave.Infrastructure.Editor.dll
    Syntax
    public static class GameSaveCreator

    Fields

    DefaultLocalFileDirectoryName

    Default LocalFile backend directory name, also used by CreateGameSaveSettingsWindow's Backend step.

    Declaration
    public const string DefaultLocalFileDirectoryName = "game-save"
    Field Value
    Type Description
    string

    DefaultSqliteDatabaseFileName

    Default Sqlite backend database file name, also used by CreateGameSaveSettingsWindow's Backend step.

    Declaration
    public const string DefaultSqliteDatabaseFileName = "game_save.db"
    Field Value
    Type Description
    string

    Methods

    Create(Input)

    Validates the request, then resolves/creates the settings asset and, optionally, creates the backend. On any failure every mutation is rolled back so the project is left untouched.

    Declaration
    public static GameSaveCreator.Result Create(GameSaveCreator.Input input)
    Parameters
    Type Name Description
    GameSaveCreator.Input input
    Returns
    Type Description
    GameSaveCreator.Result

    Validate(Input)

    Full validation, re-checked at creation time so Create(Input) is safe to call independently of the window's live validation.

    Declaration
    public static SerenityCreationValidationResult Validate(GameSaveCreator.Input input)
    Parameters
    Type Name Description
    GameSaveCreator.Input input
    Returns
    Type Description
    SerenityCreationValidationResult

    ValidateIdentity(Input)

    Asset-name-only validation, usable before a folder or backend choice has been made.

    Declaration
    public static SerenityCreationValidationResult ValidateIdentity(GameSaveCreator.Input input)
    Parameters
    Type Name Description
    GameSaveCreator.Input input
    Returns
    Type Description
    SerenityCreationValidationResult
    In this article
    © 2026 Serenity. All Rights Reserved