I can not provide a "why" here, because as far as I can tell it happened spontaneously - after saving an edit to one of my scripts, it just started happening. But here's the problem:
Every single one of my scripts, while still in the same Scripts file, can no longer be found and loaded. All the Script Components (take the Game Manager component for example) now look like this:
or like this:
Attempting to locate the scripts by going Add Component > Scripts > [Desired Script] doesn't work, because there isn't even a Scripts item in the Add Component menu. I have already looked this up, and none of the answers I found were applicable:
- Yes, every script's file name is the same as the Class name within them
- I have tried reimporting all assets (Assets > Reimport All), no success.
- Taking all scripts out of the project, restarting unity and then reimporting the scripts. Nothing
- Removing all script components, then reapplying them. It didn't work because, as I said, there was no Script item in the Components menu.
This is a pretty game-breaking, literally, because this is a hobby game (I'm not doing this as a job, it's just in spare time). If I can't restore the game as it was, I won't be able to bring myself to restart it. So any help is greatly appreciated.