Hi all
I have had this weird problem since yesterday. I run the game a couple of times and everything is fine. Then I open a script in Unity’s included Text editor (for the life of me the name NOW eludes me!), make minute changes to it and hit save, now suddenly I get 50 errors about invalid types being used in various other files…!
I FINALLY realize that the filename’s have been renamed to all lower case so they no longer match the types I used in my var X : someType = GetComponent(someType) statements. I then try to rename it but as you know, Unity won’t allow you to rename a file if you only change case and not the actual filename. But then I first go and check something else out and lo and behold the filename in Finder matches the filename in the scripts but the filenames inside Unity don’t match…
So I go into Unity and rename the file by removing the first character from the name and then renaming it again with the correct case. Voila. Problem solved. I thought it was a bit weird, but at least it is solved…
So then last night, after many more builds, I open Classes.js make no changes to it apart from spacing some variables to look a tad more organized. I now hit save and voila, 20 errors about 2 classes not being found. I check the filename in Unity and it matches the type in the scripts. I check the filename in Finder and it matches the filename in Unity… So what the heck is going on!!!
Here is my situation:
I backed up the entire folder containing all my Unity projects. When Is say backup, I mean I dragged the entire folder to an external drive.
I then repartitioned my main drive and installed my newly purchased copy of Snow Leopard.
I then dragged that entire folder back to it’s own dedicated partition
I now install Unity and load my project.
I get that errors so I think that perhaps the meta stuff got corrupted because it changed volumes or something so I reimport all assets.
No difference.
So, has anyone had this issue before? Any idea why it keeps cropping up as of yesterday only?
Could it be incompatibility with OSX maybe? The reason I ask is because Maya 2009 worked fine after I upgraded the OS, but when i repartitioned the drive and then tried to install Maya it simply refused to install. I had a look in the package and did the install directly from the package and got an error message saying that my OSX is to new and Maya 2009 can only be installed in Tiger. So I simply went to my TimeMachine backup and dragged my Maya folder back to my harddrive and now it works again but I get artifacts on the screen whenever I drag my mouse.
I came to the conclusion that when I upgraded the OS it still used some of the previous settings. The reason for this is because Safari refused to load Facebook or eBay or PayPal etc etc. All the large sites I frequently visit. I had to refresh it around 30 times and it loaded 2 pages per hour. Now that I did a clean install Safari works perfectly. unity worked perfectly after I upgraded the OS, now that I did a clean install I get filenames renames, filenames not matching the filenames on disc and Unity complaining about types not existing even though they do and Unity used it 20 times in the last 30 minutes…
Any clues?