Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Forcing texture unload

$
0
0
I'm having some trouble unloading unused textures. I have a scene with a single GUITexture object that calls one of my 30+ tutorial images. Each tutorial image takes up the whole screen and needs to be uncompressed to avoid looking terrible.

When I load a tutorial page, I do the following:

Code (csharp):
  1.  
  2. GUITexture texObject;
  3.  
  4. void SetTutorialImage(string imageName)
  5. {
  6.   Texture tex = (Texture) Resources.Load("Tutorials/" + imageName);
  7.   texObject.texture = tex;...
Forcing texture unload

Viewing all articles
Browse latest Browse all 10823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>