ドキュメント

Unity Engine

Unity Engine

PreloadBehavior

The preload behavior the flagged table collections follow.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule
public static PreloadBehavior PreloadBehavior { get; set; }

Remarks

Defaults to PreloadBehavior.PreloadSelectedLocale. Flag collections for preloading in the Editor. The flagged tables load when initialization completes and again after the selected locale changes, so their values are available to the synchronous accessors afterwards. Without a registered settings instance, this reads as PreloadBehavior.NoPreloading.
Additional Resources: PreloadBehavior
Preload the flagged tables for the selected locale and its fallbacks.

Examples

using Unity.Localization;namespace Unity.Localization.Samples{ public class PreloadBehaviorExample { public void Configure() { LocalizationSettings.PreloadBehavior = PreloadBehavior.PreloadSelectedLocaleAndFallbacks; } }}