AddTable(ResourceTableCollection, Locale)
Adds a table for a locale to a collection, or returns the collection's existing table for that locale.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: Unity.Localization.Editor
- Assembly: UnityEditor
public static ResourceTable AddTable(ResourceTableCollection collection, Locale locale)
Parameters
The collection to add the table to.
The locale the table targets.
Returns
Type | Description |
|---|---|
| ResourceTable | The new or existing ResourceTable, or |
Remarks
Creates the per-locale ResourceTable as a separate asset in the collection's folder, registers the collection with its content source, and saves. When the collection already has a table for the locale, that table is returned unchanged. The locale is normally one of the project's LocalizationSettings.AvailableLocales.
Additional Resources: LocalizationEditorSettings.CreateStringEntry, ResourceTableCollection