Corrupted Build?
Whelp. I'm stumped. (tdlr every script even from multiple sources in the asset store all say that the associated script cannot be loaded now)
I was working on a project on the title screen. I had it working, but I tried to add a fade out effect when the new game button was clicked, to make the level transitions a bit smoother. I was following a youtube how to, but it wasn't quite set up for what I wanted so I took a crack at some custom coding (which is far from my strong suit) but it didn't work. I was getting console errors. No biggie, I deleted the script and reapplied my original working one just as it had been. Only now it said that the script had inconsistent language and couldn't launch despite it working just fine 15 minutes ago. All right, that's weird. I deleted that script, at least it was only a few lines. Now the project won't play at all or give console errors and every single script regardless of whether I wrote it or it came from multiple different asset store sources all say that the associated script cannot be loaded. In every scene, not just the title scene. 50-100ish scripts.
Is there some kind of terrible checkbox that shouldn't exist that I accidentally clicked on somewhere? Or is this build unsalvageable and I just need to move my assets to a "new" project and rebuild it? Any thoughts or suggestions would be swell, I was about two days away from launching a test build for a group of people. I'll only lose a day or two if I have to move stuff over, but it'll be a very rage inducing day or two.
Answer by goldwyn11 · Aug 10, 2019 at 01:09 AM
I figured out what happened for anyone that has this come up. It turns out that rather than unity, visual studio community 2019 got corrupted. I couldn't even open it up outside of unity (I didn't think I was thaaat bad at coding :B) I uninstalled it and reinstalled it and unity couldn't find it. So I uninstalled it again and then manually deleted any reference to visual studio that I could find on my computer and then rereinstalled it and now it seems to be working fine. Still no idea what happened, but now at least I know the cause.
Answer by goldwyn11 · Aug 09, 2019 at 11:57 AM
Thanks to anyone who gave this a read. I set up everything to reimport into a new project overnight, and since I'm awake now it'll probably just be quicker to throw everything back together rather than hoping for an answer. I'll leave this open in case someone does understand what happened here and wants to save someone else a headache, unless a mod would rather take it down. Thanks again anyone reading c: