Hello,
After moving scripts around in the Unity editor, and manually renaming an unrelated one, my scripts seem to have lost all references to some moved classes. They don’t show up in regular "using"s. I realize this is probably a common problem. Here’s an example of a messed-up script.
I appreciate any answers or guides in the right direction.
Update: I’ve tried just simply restarting Visual Studio, rebuilding the project. All META files seem to be in the right places.
Update: The problem is fixed when I move all the trouble scripts into the folders they have trouble referencing. The problem seemed to be scripts losing the references to their old folder, when they were moved away (horizontally or vertically) from the folder they were created in. This works, but I’d still like to move things around, so if someone has insights, let me know.
Update: The problem has been getting larger, and I’ve been needing to move more scripts into the same folder as they slowly lose references. “Referenced script cannot be found” errors in the editor sometimes appear, fixed by reloading Unity.