I have a game with two scenes, menu and game. When jumping from the scene menu to game on Android the atlas texture used in menu isn’t removed from memory even though it's not referenced in game. However, this problem does not appear when doing the same thing in the editor. When using the memory profiler on the Android I can see that the texture has one reference the atlas material but that material itself does not have any references.
This is a big problem for me beacuse when the memory gets full I get a big spike due to garbage collection but the texture is still not being removed.
Only thing I can think of is that the material is referenced in a static variable and maybe that’s why it doesn’t show any references in the memory profiler?
Any ideas on how to solve or work around this?