Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStartupLocale(LocalizationSettings)

Returns the locale to select, or null to defer to the next selector.
Read time 1 minuteLast updated 21 days ago

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
Locale GetStartupLocale(LocalizationSettings settings)

Parameters

The localization settings whose locales the selector chooses from.

Returns

Type

Description

LocaleThe locale to use as the startup locale, or null to let the next selector in the chain decide.

Remarks

Look a locale up on
settings
with LocalizationSettings.GetLocale. A disabled locale returned here is skipped during startup selection, so the next selector runs instead.