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
RecipeStringTableCollectionCopy
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
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
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
Returns