Cause and mechanism
Addressables loads assets such as textures or Prefabs on demand and tracks their uses with reference counts. A missing matching release can keep assets in memory. Trace each load to its corresponding release. Even at a zero reference count, dependent AssetBundles can delay a visible drop in memory usage.
Check and correct the setup
- Match LoadAssetAsync acquisitions with releases when use ends.
Release / Dispose - Use ReleaseInstance for tracked InstantiateAsync instances. Destroy manually instantiated copies and manage the original asset handle separately.
Release / Dispose - Define one owner for failure, cancellation, and scene-transition cleanup; prevent double releases.
Release / Dispose
Limits and verification
Do not unconditionally release both handle and instance for the same ownership. Inspect reference counts and repeated-load memory behavior.
A focused diagnostic setup
Trace handles for one repeatedly opened image UI. Distinguish reuse from issuing a fresh load on every open.
Test in this order
- Assign ownership for success, failure, interrupted UI and scene changes.
Release / Dispose - Match asset loads to Release and tracked instantiation to ReleaseInstance.
Release / Dispose - Compare reference counts, bundle dependencies and actual memory across cycles.
Release / Dispose
Interpret the result
Shared bundle dependencies can keep memory after a count returns. Manually instantiated copies also need their source asset held long enough. Never compensate with duplicate releases.