Class LocalizedReference
Provides a way to reference a table entry inside of a specific LocalizationTable.
Implements
Namespace: UnityEngine.Localization
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public abstract class LocalizedReference : ISerializationCallbackReceiver
Fields
| Name | Description |
|---|---|
| m_CurrentTable | |
| m_CurrentTableEntry |
Properties
| Name | Description |
|---|---|
| FallbackState | Can be used to override the default fallback state. |
| IsEmpty | Checks whether both TableReference and TableEntryReference contain valid references, and returns true if one of them is empty. |
| LocaleOverride | Provide a locale that can be used instead of SelectedLocale. A null value will revert to using SelectedLocale. |
| TableEntryReference | Provides a reference to the entry inside of the table. The entry reference can be the Key or KeyId. |
| TableReference | Provides a reference to the LocalizationTable. A table reference can be either the TableCollectionName of the table or the TableCollectionNameGuid. |
| WaitForCompletion | Determines if WaitForCompletion should be used to force loading to be completed immediately. See Synchronous Workflow for further details. Please note that WaitForCompletion is not supported on WebGL. |
Methods
| Name | Description |
|---|---|
| ForceUpdate() | |
| Reset() | Called when values are changed due to a change made via serialization, such as via the inspector. |
| SetReference(TableReference, TableEntryReference) | Sets both the TableReference and TableEntryReference and triggers an update if there are any change subscribers. |