Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

LocalizationEditorSettings.AddTable

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static ResourceTable AddTable(ResourceTableCollection collection, Locale locale);

Parameters

Parameter Description
collection The collection to add the table to.
locale The locale the table targets.

Returns

ResourceTable The new or existing ResourceTable, or null when the collection or locale is null, or the collection has no shared data.

Description

Adds a table for a locale to a collection, or returns the collection's existing table for that locale.

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