Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LocalizedTable

A serializable reference to an entire localization table resolved for a locale.
Read time 2 minutesLast updated 6 days ago

Definition

public class LocalizedTable : LocalizedReference

Remarks

A LocalizedTable extends LocalizedReference to resolve a whole ResourceTable rather than a single entry. It resolves the table for the selected locale unless LocalizedReference.LocaleOverride is set. Load the table with LocalizedTable.GetTableAsync, or read it synchronously with LocalizedTable.GetTable once it is loaded. Use this to access many entries at once instead of one LocalizedEntry<TEntry> per entry.
Resolve a whole table for the selected locale.

Examples

using Unity.Localization;using UnityEngine;namespace Unity.Localization.Samples{ public class LocalizedTableResolveExample { public async Awaitable Resolve() { var reference = new LocalizedTable(); reference.TableReference = "My Strings"; ResourceTable table = await reference.GetTableAsync(); if (table != null) Debug.Log(table.name); } }}

Methods

Method

Description

GetTableReturns the table synchronously if it is already loaded.
GetTableAsyncResolves the table asynchronously for the reference's locale.

Inheritance