Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Release(TStore, Object)

Releases an asset that was loaded from a stored reference.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: Unity.Localization
  • Assembly: UnityEngine.LocalizationRuntimeModule

Release(T, Object)

protected abstract void Release(TStore store, Object asset)

Parameters

store

T
The resolved stored reference the asset was loaded from.

asset

The asset to release.

Remarks

The stored reference is passed so a store-aware kind can release by its reference rather than by the loaded object. The built-in direct and Resources kinds ignore it, but a package-provided Addressables-backed kind whose store is an address or handle uses it to release the right handle.