Release(Object)
Does nothing, because this provider does not own the assets it returns.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: Unity.Localization.Providers
- Assembly: UnityEngine.LocalizationRuntimeModule
public void Release(Object asset)
Parameters
The asset to release. Ignored.
Remarks
The references are owned by whatever holds this provider, so there is nothing to unload. This method exists to satisfy IAssetProvider.
Call release on a referenced asset. Nothing is unloaded.
Examples
using Unity.Localization.Providers;using UnityEngine;namespace Unity.Localization.Samples{ public class ReferencedAssetProviderReleaseExample { public void Run() { var provider = new ReferencedAssetProvider(); var texture = new Texture2D(2, 2); provider.Add("UI/Logo", texture); provider.Release(texture); // no-op: the reference is owned elsewhere } }}