Class LocalizedStringGroup
Aggregates multiple LocalizedString entries into a single List<T> of strings.
Implements
Inherited Members
Binding.OnDataSourceChanged(in DataSourceContextChanged)
Namespace: UnityEngine.Localization
Assembly: Unity.Localization.dll
Syntax
[Serializable]
[UxmlObject]
public class LocalizedStringGroup : CustomBinding, 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.
Constructors
| Name | Description |
|---|---|
| LocalizedStringGroup() | Creates a new LocalizedStringGroup. |
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. |
| OnActivated(in BindingActivationContext) | |
| OnDeactivated(in BindingActivationContext) | |
| Update(in BindingContext) |
Events
| Name | Description |
|---|---|
| ListChanged | Invoked when any of the child localized strings have changed. Subscribing to this event automatically begins loading the localized values. |