using System; using UnityEngine.Localization.Settings; using UnityEngine.Localization.Tables; namespace UnityEngine.Localization { /// /// Provides runtime access to a for the current selected . /// When accessing multiple localized strings it may be more convenient to use a instead of multiple . /// This fetches the table on demand or provides a callback when the table finishes loading, such as returning when the selected locale was changed. /// /// /// This example shows how a can be used directly in order to get translated strings for multiple entries. /// /// [Serializable] public class LocalizedStringTable : LocalizedTable { /// protected override LocalizedDatabase Database => LocalizationSettings.StringDatabase; /// /// Initializes and returns an empty instance of a . /// public LocalizedStringTable() {} /// /// Initializes and returns an instance of a . /// /// Reference to the String Table Collection. /// This can either be the name of the collection as a or the Collection Guid as a [System.Guid](https://docs.microsoft.com/en-us/dotnet/api/system.guid). public LocalizedStringTable(TableReference tableReference) => TableReference = tableReference; } }