- Home /
Sprite.Create and memory
I am working with downloaded textures, and am experimenting with turning UI textures into sprites (with Sprite.Create) in order to reduce render calls.
What I want to know is
does Sprite.Create creates its own copy of the pixel buffer? Can I destroy my Texture2D after I call Sprite.Create?
once you call Sprite.Create, is that sprite permanently in memory, or only so long as it's referenced? Can I remove it from memory if I want to, and how?
Well, I decided to experiment and deter$$anonymous$$ed that no, Sprite.Create does not create duplicate pixels. Destroying the Texture2D after creating the sprite results in a blank sprite being displayed.
Your answer
![](https://koobas.hobune.stream/wayback/20220612064604im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Changing texture depending on angle to another player 1 Answer
Tile Multiple Textures on Stretched Plane 0 Answers
How to quickly change the texture on a material? 1 Answer
Is there any benefit to slicing in power of two dimensions inside a sprite sheet? 1 Answer
Sprite texture size and padded size 1 Answer