Class FallbackLocale
Provides fallback data with regards to a Locale. For example you may want some regions to fall back to a default version, such as English(en_uk) may fall back to English(en). For details on how Unity evaluates the fallbacks see Locale Fallbacks.
Implements
Namespace: UnityEngine.Localization.Metadata
Assembly: Unity.Localization.dll
Syntax
[Serializable]
public class FallbackLocale : IMetadata
Constructors
Name | Description |
---|---|
FallbackLocale() | Creates a new FallbackLocale. |
FallbackLocale(Locale) | Create a new FallbackLocale to the specified fallback locale. |
Properties
Name | Description |
---|---|
Locale | The Locale to fall back to when searching for a localized value. When assigning a new value, it will be checked to ensure that the Locales do not fallback to each other and cause cyclic issues. If an issue is found then a warning will be emitted and the value will be ignored. |