Search Issue Tracker
By Design
Votes
3
Found in
2017.4.0f1
2018.2.14f1
2018.3.0a1
2019.1.0a1
2019.2.0a1
Issue ID
1105050
Regression
No
Atlased sprite is never unloaded from editor memory after exiting Play Mode
How to reproduce:
1. Open user-submitted project (asset_database_test)
2. Enter Play Mode
3. Click the 'Load atlased' button
4. Exit Play Mode
5. Open the Profiler window
6. In the detailed Memory Profiler take a sample of the Editor
7. Navigate to Assets > Texture2D
Expected result: Texture2D does not contain the atlased sprite since the Play Mode has been exited
Actual result: Texture2D contains the atlasted sprite
Reproducible with: 2017.4.21f1, 2018.3.7f1, 2019.1.0b4, 2019.2.0a4
Could not test with: 2019.2.0a5, 2019.2.0a6
Notes:
EditorUtility.UnloadUnusedAssetsImmediate and Resources.UnloadUnusedAssets() do not unload the texture from the Editor memory
Restarting the Editor unloads the Texture from the Editor memory as expected
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Console displays "ArgumentException: Cannot unschedule unknown scheduled function UnityEngine..." error after the "Audio Random Container" closing
- “[In Project] Unknown filter “i”” message is thrown in Search window
- [Ubuntu] Asset Bundles Dropdowns Contain Empty Row in Inspector
- Symbols are generated for a third-party native plug-in with 'Shared Library Type' set to 'Executable' when building for Android
- "Search by Import Log Type" Icon Nearly Invisible in Light Theme (Project Window)
Resolution Note (2019.3.X):
By design, they are not unloaded.
The SpriteAtlases in project held by SpriteAtlasDatabase are held in memory but the unused Textures are unloaded.
Note: This is only in the case of Editor. In Runtime, SpriteAtlasDatabase does not exist.