docs.unity.cn
    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).

    Inheritance
    Object
    FallbackLocale
    Namespace: UnityEngine.Localization.Metadata
    Syntax
    public class FallbackLocale : object, IMetadata

    Constructors

    FallbackLocale()

    Creates a new FallbackLocale.

    Declaration
    public FallbackLocale()

    FallbackLocale(Locale)

    Create a new FallbackLocale to the specified fallback locale.

    Declaration
    public FallbackLocale(Locale fallback)
    Parameters
    Type Name Description
    Locale fallback

    Properties

    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.

    Declaration
    public Locale Locale { get; set; }
    Property Value
    Type Description
    Locale
    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, March 4, 2022
    Terms of use