logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityExistingAssetRestoreTestSettings

    A throwaway asset type for SerenityExistingAssetRestoreTests, carrying one field of every serialization shape a real settings asset mixes — value types, a string, an enum, a list, a live object reference and a polymorphic managed-reference graph — so the forgotten-field test has something to walk. Lives in its own same-named file so Unity can bind its script when the tests create it as an asset (mirrors UnitySingletonSettingsLoaderTestSettings). The payload types are nested rather than top-level: they exist only as this fixture's [SerializeReference] element types.

    Inheritance
    object
    SerenityExistingAssetRestoreTestSettings
    Namespace: Serenity.UnityGlobal.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class SerenityExistingAssetRestoreTestSettings : ScriptableObject

    Constructors

    SerenityExistingAssetRestoreTestSettings()

    Declaration
    public SerenityExistingAssetRestoreTestSettings()

    Fields

    Count

    Declaration
    public int Count
    Field Value
    Type Description
    int

    Enabled

    Declaration
    public bool Enabled
    Field Value
    Type Description
    bool

    Mode

    Declaration
    public SerenityExistingAssetRestoreTestSettings.ScratchMode Mode
    Field Value
    Type Description
    SerenityExistingAssetRestoreTestSettings.ScratchMode

    Payloads

    Declaration
    public List<SerenityExistingAssetRestoreTestSettings.ScratchPayload> Payloads
    Field Value
    Type Description
    List<SerenityExistingAssetRestoreTestSettings.ScratchPayload>

    Ratio

    Declaration
    public float Ratio
    Field Value
    Type Description
    float

    Reference

    Declaration
    public Object Reference
    Field Value
    Type Description
    Object

    RuntimeOnlyNote

    Serialization never sees this one, so a restore never puts it back — the forgotten-field walker must skip it instead of asserting on it.

    Declaration
    public string RuntimeOnlyNote
    Field Value
    Type Description
    string

    Tags

    Declaration
    public List<string> Tags
    Field Value
    Type Description
    List<string>

    Title

    Declaration
    public string Title
    Field Value
    Type Description
    string

    Properties

    PrivateNote

    Declaration
    public string PrivateNote { get; set; }
    Property Value
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved