- Home /
All my text has become just random numbers
That's it in a nutshell. When I converted my project from Windows to Android, every single non - GUI or 3d text item became just a random string of numbers and letters, all throughout the game. Quite annoying in an RPG. :( Essentially, if I had a place to enter text in the inspector, it was affected. Not sure if there's an answer other than "retype all your text," but thought I'd post in case anyone else has ever seen this issue. Thanks, and God bless.
I hope you had backups!
That's unlike anything I've experienced in Unity. Possibly your data's been corrupted, but I'm curious how that came to pass. Are you able to reproduce the problem with a simple or reduced project?
I have a hunch that involves something nobody should ever do: When I went to port from Windows to Android (Ouya) I copied the entire assets folder into a new project, but never copied the project settings nor library. Today when I started working on the port in earnest I found my input settings were default, ins$$anonymous$$d of my custom ones from Windows. Once I copied that over all was well for input. I wonder if the same needs to be done with Library or other folders...
Short answer: that's a surefire way to corrupt the project.
You can certainly copy the entire project folder, but I'd be very careful about copying parts of the project unless you're pretty sure about what you're doing.
Unity's serialization makes heavy use of asset IDs, which are mapped to real asset files in the library folder. A missing library will be regenerated at startup, but it's highly unlikely any of the IDs will match... and thus, all of your scene data will effectively be corrupted.
You might be able to recover by deleting the regenerated library and replacing it with the original. I haven't explored that in detail.
Some of this can be mitigated by using meta files (under editor settings), which is a popular solution for external version control (git, subversion, etc.)
Well, doing that fortunately didn't corrupt my project, but I wouldn't try it again. (and it didn't fix it, sadly) I did have to step away for a long bit of time today as Unity had to reserialize, but thankfully no harm came of my little endevour. I do still have another backup, this one slightly different as it's pointed to pure Android, ins$$anonymous$$d of the Ouya like this one is. $$anonymous$$ight check the text on that one...
I think I've had this problem before, but all I did was restarted Unity and the text refreshed. Than again, I think that was with NGUI. Either way, Have you tried turning it off and on again? Though yes, it could also be corruption.