logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class GameCameraSettingsCreator

    Generates (or updates) the project-wide UnityGameCameraSettings asset from a single description. Mirrors Serenity.GameProgress.Infrastructure.Editor.Builder.GameProgressCreator and Serenity.GameSave.Infrastructure.Editor.Builder.GameSaveCreator: static class, Input/Result DTOs, Validate, Create with created-paths rollback on failure — resolved and folder-provisioned through the shared SettingsAssetAuthoring engine rather than a private copy of its logic.

    Unlike GameProgress/GameSave — which treat more than one project-wide settings asset as a hard error because they enforce a true single-instance identity — a second UnityGameCameraSettings asset does not break the GameCamera installer (it loads every asset tagged module:game-camera and uses the first one found); ambiguity here is surfaced as a warning instead of blocking the run.

    CreateGameCameraSettingsWindow only collects input and renders results; every asset mutation lives here.
    Inheritance
    object
    GameCameraSettingsCreator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameCamera.Infrastructure.Editor.Builder
    Assembly: Serenity.UnityGameCamera.Infrastructure.Editor.dll
    Syntax
    public static class GameCameraSettingsCreator

    Methods

    Create(Input)

    Validates the request, then resolves-or-creates the settings asset and applies every field to it. On any failure every mutation is rolled back: created paths are deleted and, when an already-existing asset was being edited, its pre-call field values are restored.

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

    Validate(Input)

    Validates the request: a non-empty Id, and either a resolvable existing asset or a well-formed destination folder for a fresh one. A project-wide search turning up more than one existing asset is surfaced as a warning (see the ambiguity note on the type), never an error.

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