docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    FallbackLocale
    Implements
    IMetadata
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)