Hello Guest

Author Topic: Corrupted sprites on iOS  (Read 4078 times)

Callabrator

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Corrupted sprites on iOS
« 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?


Callabrator

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Corrupted sprites on iOS
« Reply #1 on: June 26, 2014, 04:57:55 pm »
Screenshot of what I'm on about.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Corrupted sprites on iOS
« Reply #2 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.