PreloadBehavior
The preload behavior the flagged table collections follow.
Read time 1 minuteLast updated 8 days ago
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; } }}