- Home /
Sprite Packer and Texture2D References
Hey,
So I'm not sure what Unity is doing for this, but I am using the Sprite Packer system to generate atlases for the game I am working on. As far as I have been aware, this has been working fine, until I profiled the memory usage of the game using Unity's profiler today.
Apparently, the atlases are being referenced for a lot of things, as they should be, but there is a significant number of cases where the atlas will not be used, and the game will instead reference the default texture. This is causing the game to package in the texture, as well as the atlas which contains the texture, considerably increasing the memory used for Textures within my game.
Does anybody have any idea why the referencing would do this? Is it a known Unity bug? Or could it be down to something that I am doing within the project?
Your answer