logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class RecipeStringTableCollectionCopy

    Copies the shipped "Global" String Table Collection — the collection, its shared data and its per-locale tables — into a fixture folder under a name of its own, with every reference between those files pointed at the copies. UnityEditor.AssetDatabase.CopyAsset(System.String,System.String) cannot do this: a copied collection keeps referencing the shipped tables, and a second collection named "Global" would make every lookup by name ambiguous. The Localization package registers an imported collection's tables as Addressables; the copy removes those entries again, so a test never leaves the project's Addressables settings changed or a locale registered.

    Inheritance
    object
    RecipeStringTableCollectionCopy
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.ProjectRecipe.Tests.Editor
    Assembly: Serenity.ProjectRecipe.Tests.Editor.dll
    Syntax
    public static class RecipeStringTableCollectionCopy

    Methods

    CollectionFileName(string)

    The file name of the collection asset of the copy named copyName.

    Declaration
    public static string CollectionFileName(string copyName)
    Parameters
    Type Name Description
    string copyName
    Returns
    Type Description
    string

    Copy(string, string)

    Copies the shipped collection into destinationFolder as copyName, imports the copies and flushes every write the import caused.

    Declaration
    public static IReadOnlyList<string> Copy(string destinationFolder, string copyName)
    Parameters
    Type Name Description
    string destinationFolder
    string copyName
    Returns
    Type Description
    IReadOnlyList<string>

    The project paths of the copies.

    TableFileName(string, string)

    The file name of a per-locale table of the copy named copyName.

    Declaration
    public static string TableFileName(string copyName, string localeCode)
    Parameters
    Type Name Description
    string copyName
    string localeCode
    Returns
    Type Description
    string
    In this article
    © 2026 Serenity. All Rights Reserved