ReleaseAllAssets()
Releases every cached asset across all locales.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: Unity.Localization
- Assembly: UnityEngine.LocalizationRuntimeModule
public void ReleaseAllAssets()
Remarks
Frees all localized assets held by the database's cache. Each asset is reloaded through the provider chain the next time it is requested. To release only one locale's assets, use ResourceDatabase.ReleaseAssets.
Releases all cached assets, for example before unloading a scene.
Examples
using Unity.Localization;namespace Unity.Localization.Samples{ public class ReleaseAllAssetsExample { public void Run() { LocalizationSettings.ResourceDatabase.ReleaseAllAssets(); } }}