Namespace UnityEngine.Localization.Samples | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Namespace UnityEngine.Localization.Samples

    Classes

    CreateAndSetupLocalizationSettingsExample

    This example shows how to create and setup localization support for several languages and make it active.

    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.

    LanguageSelectionMenuExample

    This example shows how a simple language selection menu can be implemented.

    LanguageSelectionMenuExample.SimpleLocalesProvider

    LocaleFallbackExample

    This example shows how the fallback locale can be configured.

    LocaleIdentifierCultureInfoExample

    This example shows how the cultureInfo can be retrieved after creating a LocaleIdentifier using a Code.

    LocaleIdentifierIdExample1

    This example shows the various ways to create a LocaleIdentifier.

    LocaleIdentifierIdExample2

    This shows how to create a locale for English and a regional locale for English(US).

    LocaleNameExample

    This example sets the name to include both English and Japanese.

    LocaleWithIconExample

    PlayerPrefLocaleSelector

    This example shows how we can create a Locale selector that uses the Player Prefs to keep track of the last used locale. Whenever the locale is changed, we record the new Locale and update the player pref

    PluralFormExample

    This example shows how the PluralForm can be used to select the correct plural to display.

    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