2D Toolkit Forum

2D Toolkit => Support => Topic started by: Callabrator on June 26, 2014, 09:23:07 am

Title: Corrupted sprites on iOS
Post by: Callabrator on June 26, 2014, 09:23:07 am
I'm running into an intermittent sprite corruption issue when running my game on a device (iPhone 5 iOS v7.1.1).  I'd say it happens one out of every 10 times I run the game.  Some, or all, of my sprites show up as colored boxes.  Killing, and restarting the game makes everything look fine again.  I've never seen the problem while running in the editor.

I've looked through all the different bits of the collections, but nothing jumps out at me.  Thoughts?

Title: Re: Corrupted sprites on iOS
Post by: Callabrator on June 26, 2014, 04:57:55 pm
Screenshot of what I'm on about. (http://i1284.photobucket.com/albums/a579/Callabrator/SpriteCorruption_zpsaee1564f.jpg)
Title: Re: Corrupted sprites on iOS
Post by: unikronsoftware on June 26, 2014, 09:13:09 pm
It sounds like the texture is getting corrupted on device. The easiest way to confirm this is to write a script that when activated will Resources.FindObjectsOfTypeAll(typeof(Texture2D)) and draw them in a big gui list. Check when its working and once again when broken to see whats going on there.