Search Issue Tracker
Fixed in 2019.3.X
Votes
0
Found in
2019.1.0a5
2019.1.5f1
2019.2.0a1
2019.3.0a1
Issue ID
1160054
Regression
Yes
When using the Button component, Texture2D can't be unloaded after switching the Scene and/or using Resources.UnloadUnusedAssets
How to reproduce:
1. Open the user's project
2. Open the scene "TestA"
~it has a script which loads "TestB" scene when pressing Space~
3. Play
4. Open the Memory Profiler, Detailed, Take Sample Editor
5. Inspect Assets > Texture2D, it clearly has some sprites
6. Return to Game Window and press Space (it loads SceneB)
7. Take Sample Editor again
8. Inspect Assets > Texture2D, also has sprites, even though there are none in the scene
Expected result: Assets can be unloaded after switching the scene and Resources.UnloadUnusedAssets();
Actual result: Texture2D assets cannot be unloaded
Reproducible with - 2019.1.0a5, 2019.1.6f1, 2019.2.0b5, 2019.3.0a5
Not reproducible with - 2017.4.28f1, 2018.4.2f1, 2019.1.0a4 (some assets can be unloaded)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
Add comment