PrepareAsync(LocalizationSettings, CancellationToken)
Loads whatever the selector needs before it is asked for a locale.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
Awaitable PrepareAsync(LocalizationSettings settings, CancellationToken cancellationToken = default)
Parameters
The localization settings that are initializing.
The token that signals the preparation should be canceled.
Returns
Remarks
Runs once per initialization. An exception thrown here is logged and the run continues, so the selector should leave itself in a state where IStartupLocaleSelector.GetStartupLocale can return null.