Class LocalizedStringList
A LocalizedString whose resolved value is a delimited list that is split into a List<T> of strings.
Implements
Inherited Members
Namespace: UnityEngine.Localization
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class LocalizedStringList : LocalizedString, ISerializationCallbackReceiver, IVariableGroup, IVariableValueChanged, IVariable, ILocalizedStringList
Remarks
Use this for binding to choice-style UI, such as
dropdowns in either UI Toolkit or uGUI.
The table entry value must be a delimited string. For example, "Option A,Option B,Option C".
Whitespace around the separator is not trimmed.
Constructors
| Name | Description |
|---|---|
| LocalizedStringList() | Creates a new empty LocalizedStringList. |
| LocalizedStringList(TableReference, TableEntryReference) | Creates a new LocalizedStringList referencing the given table and entry. |
Properties
| Name | Description |
|---|---|
| Separator | The string used to split the localized value into individual list items. |
Methods
| Name | Description |
|---|---|
| GetLocalizedList(List<string>) | Forces a synchronous load and returns the split list. |
| GetLocalizedListAsync(List<string>) | Asynchronously loads the localized value and splits it into the resulting list. |
Events
| Name | Description |
|---|---|
| ListChanged | Invoked when the localized list has changed, such as when the selected locale changes. Subscribing to this event will automatically begin loading the localized value. |