I have a situation where Unity is taking forever to start and especially stop, the editor. I click play, and get the colorfull little wondewheel, and eventually, the scene starts. It’s even worse on stop. I noticed, if I go to another desktop, and do a force quit, I see unity in red and that it’s ‘not responding’. If I just kill it, and re-start it, it will play pretty quick, but the slowdown will occur again on stop, and then on the next start. It’s like a component of iphone Unity is corrupt or something. When I build the application to the iPod now, the game freezes in about 2 to 5 minutes of play, and only if I’m moving my character around. I’ve been de-bugging this for 4 days, and have come to the conclusion it’s not a programming bug. Thought I was dividing by zero or something, but no.
HELP!! ![]()
I fixed it MYSELF! Well with the help of my mentor also. In a word… PlayerPrefs.DeleteAll() but be careful with this (Whatever the hell that means). I’m guessing, player preference information is like cached data you can use to save levels and stuff, and it builds up after awhile if you’re not deleting it periodically. I put this statement in a location where it can trigger on game load each time till we can figure out a better way in light of any level saving we may do.