Class CustomLocalesProvider | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class CustomLocalesProvider

    By default the locale provider uses the Addressables system to load all supported locales. This example shows how to create a locale provider that includes the locales built in and requires no loading from Addressables. To use this, create a Custom Locale Provider asset through the asset menu and drag the asset into the Localization settings Locales Provider field.

    Inheritance
    System.Object
    LocalesProvider
    CustomLocalesProvider
    Inherited Members
    LocalesProvider.GetLocale(LocaleIdentifier)
    LocalesProvider.GetLocale(String)
    LocalesProvider.GetLocale(SystemLanguage)
    LocalesProvider.AddLocale(Locale)
    LocalesProvider.RemoveLocale(Locale)
    Namespace: UnityEngine.Localization.Samples
    Syntax
    public class CustomLocalesProvider : LocalesProvider

    Properties

    Locales

    Declaration
    public override List<Locale> Locales { get; set; }
    Property Value
    Type Description
    List<Locale>
    Overrides
    LocalesProvider.Locales
    Back to top
    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