docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023