DiscoverLocalesAsync(LocalizationSettings, CancellationToken)
Registers any additional locales this provider can serve.
읽는 시간 1분최근 업데이트: 한 달 전
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