Class LocalizedStringGroup
Aggregates multiple LocalizedString entries into a single List<T> of strings.
Implements
Namespace: UnityEngine.Localization
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class LocalizedStringGroup : ILocalizedStringList
Remarks
Use this for binding to choice-style UI, such as dropdowns in either UI Toolkit or uGUI. Each child LocalizedString independently tracks locale changes. The combined list updates whenever any entry changes.
Properties
| Name | Description |
|---|---|
| Strings | The list of localized strings whose resolved values form the bound list. |
Methods
| Name | Description |
|---|---|
| GetLocalizedList(List<string>) | Forces a synchronous load of all child strings and returns the combined list. |
| GetLocalizedListAsync(List<string>) | Asynchronously loads all child strings and aggregates them into the resulting list. |
Events
| Name | Description |
|---|---|
| ListChanged | Invoked when any of the child localized strings have changed. Subscribing to this event automatically begins loading the localized values. |