Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static ResourceTable AddTable(ResourceTableCollection collection, Locale locale)

Parameters

The collection to add the table to.

locale

The locale the table targets.

Returns

Type

Description

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

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.