DiscoverLocalesAsync(LocalizationSettings, CancellationToken)
Registers any additional locales this provider can serve.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
Awaitable DiscoverLocalesAsync(LocalizationSettings settings, CancellationToken cancellationToken = default)
Parameters
The settings to register discovered locales on.
The token that signals the discovery should be canceled.
Returns
Remarks
Called during LocalizationSettings.InitializeAsync. Add each discovered locale with LocalizationSettings.AddLocale, and honor for long-running discovery.
cancellationToken