文档

Unity Engine

Unity Engine

StartupSelector

The selector that chose the startup locale, or null when the chain fell through to the project locale.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public IStartupLocaleSelector StartupSelector { get; }

Remarks

Set during LocalizationSettings.InitializeAsync. Read it to tell whether a user override was applied at startup or whether the locale came from the project default. Pair it with LocalizationSettings.EvaluateStartupLocale to show both the chosen locale and the one that would have been chosen without the override.