Search Issue Tracker

Fixed in 1.6.X

Votes

0

Found in [Package]

1.1.5, 1.2.4

Issue ID

1181585

Regression

No

[Addressables] Asset reference is kept when releasing the asset with Addressables.Release

Package: Addressables

-

How to reproduce:
1. Open the attached project ("case_1181585-Addressables_Bug.zip")
2. Open the repro scene ("SampleScene")
3. Enter Play Mode
4. Click the "load mat00" button (it calls Addressables.LoadAssetAsync())
5. Click the "unload mat00" button (it calls Addressables.Release()))
6. Click the "free all" button (it calls Resources.UnloadUnusedAssets())
7. Click the "list" button (it calls Resources.FindObjectsOfTypeAll<>)

Expected results: Nothing is being printed out in the console
Actual results: "find mat00" log can be seen in the console, which shows that "Resources.UnloadUnusedAssets" failed to unload the asset because Addressables still references it

Reproducible with: 2018.4.11f1, 2019.2.9f1, 2019.3.0b6, 2020.1.0a8

  1. Resolution Note (fix version 1.6):

    fixed in 1.6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.