Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

AssetEntryBase<T0>.Release

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

protected void Release(TStore store, Object asset);

Parameters

Parameter Description
store The resolved stored reference the asset was loaded from.
asset The asset to release.

Description

Releases an asset that was loaded from a stored reference.

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.