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
- Ghost collisions occur in a Physics mesh when entering the Play mode
- TMP text with Auto Size overflows when using the WD% property
- Light Explorer does not update Isolated Selection when new Light selected in Scene
- "Reference for Rendering" opens a documentation focused in the "Shadows"
- [Android] SystemInfo.processorFrequency displays an incorrect value when called during mobile Runtime
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.